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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
inahury1
New Member

KPI card to display current month instead of December previous year

Struggling to get the KPI visual to display current month. Any help would be appreciated!

 

I have a measure for the previous monthly usage. 

Prior Monthly Usage = CALCULATE([Usage Days], PREVIOUSMONTH('Usage'[Started].[Date]))  

Then I have another measure to calculate the difference between the current month and previous.

Measure = DIVIDE([Usage Days], [Prior Monthly Usage], BLANK())-1

 

I want to display the Measure (difference) in the KPI visual but it doesn't want to display the current month. It displays December from the previous year. 

inahury1_0-1715365314864.png

 

Thank you!

 

 

1 ACCEPTED SOLUTION

Hi @inahury1 

To ensure the card functions correctly, it must have a filter. If you need it to be based on the "current month" and not depend on the report filter dynamics, you can use a relative date filter: "This month."

Ritaf1983_0-1718169026420.png

The updated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @inahury1 
Maybe you didn't filter the report / visual.

In this case, the engine default is the end of the current year .
I created an example to show how it works.
With slicer :

Ritaf1983_0-1715398846738.png

Without slicer/filter:

Ritaf1983_1-1715398903538.png

With filter by the "main" measure not blank :

Ritaf1983_2-1715399335765.png

The pbix is attached (the last 3 sheets are examples of what I showed)

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

I tried this and it still didn't work. I don't want to add an addtional date filter to the report. I am looking for the KPI card visual to always dynamically return the previous months value. So for example, it is currently June. So looking for it to return the value from May 2024. When July is here, want it to return the June number. 

 

I can filter the graphic by having it not use the value when Usage Days is blank. However, it still wants to use December 2023 value. 

 

inahury1_0-1718121355626.png

 

Hi @inahury1 

To ensure the card functions correctly, it must have a filter. If you need it to be based on the "current month" and not depend on the report filter dynamics, you can use a relative date filter: "This month."

Ritaf1983_0-1718169026420.png

The updated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors