-
-
Save ImkeF/375eda233d3ed3e49ea22609576876a2 to your computer and use it in GitHub Desktop.
This file contains 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
BenfordMeasure = | |
VAR BenfordNumber = | |
MAX ( BenfordTable[Value] ) | |
VAR CountBenfordNumber = | |
CALCULATE ( | |
COUNTROWS ( FactTable ), | |
LEFT ( FactTable[Value], 1 ) * 1 = BenfordNumber | |
) | |
VAR CountTotal = | |
COUNTROWS ( FactTable ) | |
RETURN | |
DIVIDE ( CountBenfordNumber, CountTotal ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment