Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I want to create a measure in Power Bi which shows the standard deviation of the distinct counts of IDs by month

Month | ID
1       A
1       B
1       A
2       C
2       D
2       E
3       F
3       G

The Counts would be:
Month | Distinct Count
1       2
2       3
3       2

 

1 Answer

0 votes
by (22.5k points)

Use the following formula

Standard Deviation = 

var grouped_table = SUMMARIZE('Table','Table'[Month],"Distinct Count",DISTINCTCOUNT('Table'[ID]))

var st_dev = STDEVX.P(grouped_table,[Distinct Count])

return(st_dev)

If u want to know more about Power BI, one of the powerful BI tools, then join the Power Bi course 

Related questions

0 votes
1 answer
asked Dec 1, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...