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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bigfun
Helper I
Helper I

Previous Month % in Card

So I am wanting to create a card that displays the previous months retention % based on the current date.

Do I need to create another measure that calculates the % again with the DAX previousmonth function? Or something else.


I have the measures built to calculate the retention % by month (there is a little hiccup with Mar2021 data that will be resolved)

bigfun_0-1646851936991.png
Link to the file

 

1 ACCEPTED SOLUTION
Syk
Super User
Super User

If it will always just be for the previous month you can put a date filter on your card to show "Last 1 calendar month" with your current measure.

Syk_0-1646852608872.png

 

View solution in original post

6 REPLIES 6
Syk
Super User
Super User

If it will always just be for the previous month you can put a date filter on your card to show "Last 1 calendar month" with your current measure.

Syk_0-1646852608872.png

 

That is simple enough, but when I apply that to the card for the visual the % does not match up with the table.

bigfun_0-1646853108849.png
I think it has to do with the measure, other values work out fine.

bigfun_1-1646853680500.png

 

 

What is your measure?

Retention Pct = DIVIDE([MAU-Amt],[Cumulative NewUsers])

 

The result you're getting in the card is  MAU_Amt / New Users. How are you calculating the Cumulative New Users?

Cumulative NewUsers = calculate([New_Users],FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date] <= MAX('Calendar'[Date])))

I also have a link to the .pbix if that helps too 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.