cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
schdef Frequent Visitor
Frequent Visitor

PBI Active Users calculation

Trying to calculate Monthly Active users with the follwoing measure:

 

MAU = CALCULATE(
    SUMX(VALUES('Usage '[Alias]),1),
    ALL('Usage'[FullDate]),
    DATESINPERIOD('Usage'[Date], LASTDATE('Usage'[Date]), -30, DAY)
)

 

This basically works fine and as expected. Using the measure in a trend chart, there is just one issue with the dates where we do not have distinct users - this leads to the situation that the DATESINPERIOD is not calculated correctly as there appears to be not start date. For this date only the users 30 days ago are being considered which is not what i  want. See the screenshot attached.


mau chart.JPG

Any thoughts how to fix that? Many thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-sihou-msft
Moderator

Re: PBI Active Users calculation

@schdef

 

In this scenario, I don't understand why you have both [FullDate] and [Date] column in your table. I think your Usage table is a fact table which should include a Date column only. Then you can have another Full Date table and build relationship to Usage table. When can calculate the active users, you should use Full Date to limit the date range in DATESINPERIOD() function.

 

Regards,

View solution in original post

1 REPLY 1
Moderator v-sihou-msft
Moderator

Re: PBI Active Users calculation

@schdef

 

In this scenario, I don't understand why you have both [FullDate] and [Date] column in your table. I think your Usage table is a fact table which should include a Date column only. Then you can have another Full Date table and build relationship to Usage table. When can calculate the active users, you should use Full Date to limit the date range in DATESINPERIOD() function.

 

Regards,

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 240 members 2,335 guests
Please welcome our newest community members: