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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

KPI Card Not Showing correct Month

Hello All,

 

The KPI built to represent amount of shipments moved this month x last month is not showing the current month. How can I make so it always shows the comparison between current month and last one?

 

The number is showing as 8912 

 

Below the table with the data and KPI

 

1.png

 

The dax function are as below:

CountShipmentID = CALCULATE(COUNT(Table[ShipmentID])) 
Shipment ID last Month = CALCULATE([CountShipmentID],DATEADD('Invoked Function'[Date],-1,MONTH))
 
The result I want to show in the KPI is
 
Goal : 1100
Number : 0 (since there was no shiments in February)
5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Can you show some sample data to us if you don't have any Confidential Information?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , I think you have to take current month KPI for that

 

example

MTD Sales = CALCULATE(COUNT(Table[ShipmentID]),DATESMTD('Date'[Date]))

Anonymous
Not applicable

Hello @amitchandak .

 

Than you for the quick reply.

 

It did not work as the number is blank:3.PNG2.PNG

@Anonymous , is your page filtered on a date/month. If not, time intelligence will pick up the last date of the calendar

Anonymous
Not applicable

@amitchandak No it is not.

 

The last date on the calendar is on 2025, december. I guess that is why it is showing the month of december?

 

Filtering the page up till this day did not solve the problem5.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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