DAX Reference Cheat Sheet
Hi Sorna,
Once again I tried to update the file to include the new DAX formulas that were just released and I got the attached error. I think the problem is that the the URL for this new functions is as follows: https://msdn.microsoft.com/en-us/query-bi/dax/norm-dist-dax
So it includes the standard DaxFunctionWebPath but the DaxFunctionName is not DaxFunctionNameFormatted:
| norm-dist-function-dax |
Neither DaxFunctionNameFormattedWithoutDax:
|
norm-dist-function |
But rather something like DaxFunctionNameFormattedWithoutFunction:
|
norm-dist-dax |
So how can we change the function GetDaxFunctionDetails to accomodate three possible scenarios using:
DaxFunctionNameFormatted, DaxFunctionNameFormattedWithoutDax or DaxFunctionNameFormattedWithoutFunction
= try GetDaxFunctionDetails([DaxFunctionWebPath],[DaxFunctionNameFormatted] ) otherwise GetDaxFunctionDetails([DaxFunctionWebPath], [DaxFunctionNameFormattedWithoutDax])
Any help would be greatly appreciated, thanks!
Hi ,
Have fixed this issue by having a nested try block as below
try GetDaxFunctionDetails([DaxFunctionWebPath],[DaxFunctionNameFormatted] )
otherwise
try GetDaxFunctionDetails([DaxFunctionWebPath], [DaxFunctionNameFormattedWithoutDax])
otherwise GetDaxFunctionDetails([DaxFunctionWebPath], [DaxFunctionNameFormattedWithDax])
Thanks
Sorna
- oscarg7 years agoFrequent Visitor
Awesome, thanks Sorna!
- Anonymous7 years agoNot applicable
Hi Sorna,
Was wondering if the pbix file you uploaded has this fix included or not?
Kristian- msornakumar7 years agoAdvocate III
Hi Kristian ,
Yes the Pbix file has the fix for the issue. Are you facing any other errors ?
Thanks
Sorna
- Anonymous7 years agoNot applicableHey,
I didn't experience any issues refreshing the list on my desktop, but I noticed it didn't import all the new functions found in the list under "new DAX functions", at least combinevalues and the UTC ones. I wonder if they haven't added those to the main reference list maybe?
Kristian