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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Yiyi
Helper I
Helper I

Calculate WAU/MAU Ratio ( Week numbers span across different months?)

Hello experts!

 

I am trying to create a visual showing the weekly active user/monthly active user ratio with the following DAX. However, I realized later that e.g. week 31 has 5 days in August but 2 days in July, and in the graph seems the % is calculated using the number from August as the denominator. I wonder if anyone here knows a better way to calculate the WAU/MAU ratio. 

 

Thanks a lot! 

Weekly Active Users = DISTINCTCOUNT('Usage Logs'[user_Id])

Monthly Active User = calculate(distinctcount('Usage Logs'[user_Id]), filter(allselected(DateTable) , DateTable[Year Month] = Max( DateTable[Year Month] ) ) )

WAU/MAU = DIVIDE([Weekly Active Users],[Monthly Active User],0)

Yiyi_0-1693504330557.png

 

 

1 REPLY 1
DataNinja777
Super User
Super User

Hi @Yiyi,

In such cases, retail companies use 445 calendar instead of gregorian calendar months.  This topic is throughly covered in Dax Pattern video training course offered by sqlbi.  

Time patterns – DAX Patterns

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.