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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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