This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sparkline Line = | |
| // Static line color - use %23 instead of # for Firefox compatibility | |
| VAR LineColor = "%2301B8AA" | |
| // "Date" field used in this example along the X axis | |
| VAR XMinDate = MIN('Table'[Date]) | |
| VAR XMaxDate = MAX('Table'[Date]) | |
| // Obtain overall min and overall max measure values when evaluated for each date |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let | |
| P1 = "myParameter1", | |
| P2 = "myParameter2", | |
| #"Header" = Binary.ToText(Text.ToBinary(#"UserName"&":" & #"Password")), | |
| #"BaseURL" = "https://yourwebpage.com/api/3", | |
| #"DaysLogic" = | |
| if | |
| #"JIRA Days" = null | |
| then | |
| "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Windows.Forms; | |
| // Variables | |
| var promptForVariables = true; // Set to true to prompt the user for the defaultTimeIntelligenceName & defaultCurrentPeriodItemName | |
| var defaultTimeIntelligenceName = "Time Intelligence"; // Used to determine the calculation group's suffix | |
| var defaultCurrentPeriodItemName = "CUR"; // Calculation item to excluded from measure creation | |
| var defaultMeasureExpression = // The template DAX query | |
| "\r\n" + | |
| "CALCULATE(\r\n" + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
| "usermeta": { | |
| "deneb": { | |
| "build": "0.6.0.150", | |
| "metaVersion": 1, | |
| "provider": "vegaLite" | |
| }, | |
| "interactivity": { | |
| "tooltip": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This gist containt useful pieces of DAX code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //This gist contains useful tabular editor scripts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This gist containt useful pieces of M Query code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| A simple query to get the list of enumerations | |
| */ | |
| let | |
| Source = Web.Page(Web.Contents("https://learn.microsoft.com/en-us/powerquery-m/enumerations")){0}[Data] | |
| in | |
| Source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #r "System.Net.Http" | |
| using System.Net.Http; | |
| using System.Text; | |
| using Newtonsoft.Json.Linq; | |
| // You need to signin to https://platform.openai.com/ and create an API key for your profile then paste that key | |
| // into the apiKey constant below | |
| const string apiKey = "<YOUR API KEY HERE>"; | |
| const string uri = "https://api.openai.com/v1/completions"; | |
| const string question = "Explain the following calculation in a few sentences in simple business terms without using DAX function names:\n\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #r "System.Net.Http" | |
| using System.Net.Http; | |
| using System.Text; | |
| using Newtonsoft.Json.Linq; | |
| // You need to signin to https://platform.openai.com/ and create an API key for your profile then paste that key | |
| // into the apiKey constant below | |
| const string apiKey = "<YOUR API KEY HERE>"; | |
| const string uri = "https://api.openai.com/v1/completions"; | |
| const string question = "Explain the following calculation in a few sentences in simple business terms without using DAX function names:\n\n"; |
OlderNewer