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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Rosh89
Helper I
Helper I

How to view previous month as text in a KPI card

Hi,

 

I would like to create a KPI card which shows the previous month as a text. For example, if it is January 2023 today then the previous month should display as 'December 2022' in the KPI card. 

 

I tried to use the PREVIOUSMONTH function but the KPI card shows blank. I would appreciate any tips or suggestions.

 

Many Thanks

 

Best Regards 

Roshan

1 ACCEPTED SOLUTION
PaulOlding
Solution Sage
Solution Sage

Hi @Rosh89 

A measure like this should get that for you:

Last Month = FORMAT(EOMONTH(TODAY(), -1), "mmmm yyyy")

 

PaulOlding_0-1673014433984.png

 

View solution in original post

2 REPLIES 2
Rosh89
Helper I
Helper I

Hi @PaulOlding Many thanks! it worked.

PaulOlding
Solution Sage
Solution Sage

Hi @Rosh89 

A measure like this should get that for you:

Last Month = FORMAT(EOMONTH(TODAY(), -1), "mmmm yyyy")

 

PaulOlding_0-1673014433984.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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