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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
Anonymous
Not applicable

Hi @Anonymous ,

 

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

 

Best Regards,

Jay

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]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.