Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Surya9
Resolver III
Resolver III

Calculate distinct count of active users monthly and average for multiple months

I have a table having users activity (userid, points, monthid, yearid)
I have to create a measure that calculate distinct users count monthly, if multiple months is selected then calculate distict users monthly and then find the average among the months

1 ACCEPTED SOLUTION
Surya9
Resolver III
Resolver III

I got the solution 
Measure =

var _b = SUMMARIZE(table,table[monthid],"Users",DISTINCTCOUNT(table[userid]))
return AVERAGEX(_b,[Users])

View solution in original post

1 REPLY 1
Surya9
Resolver III
Resolver III

I got the solution 
Measure =

var _b = SUMMARIZE(table,table[monthid],"Users",DISTINCTCOUNT(table[userid]))
return AVERAGEX(_b,[Users])

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors