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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
obriaincian
Resolver I
Resolver I

Output the previous Month from date column

Hi All,

 

I am trying to do a simple task but I can't seem to do it.

I have a column called date and I want to output the previous months date in this column.

 

Please note that the latest date in the column might not be the current month.

For example:

 

Date         
Jan-21    
Feb-21    
Mar-21    

 

What I want to do is create a measue that extracts Feb 21 and output it on a card.

 

The current code I have is 

DateMeasure = DATEADD('Data'[Date],-1, MONTH)
1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi,

if your model is not too huge you can create a calculate column

serpiva64_0-1649403557028.png

then use in your card 

serpiva64_1-1649403609487.png

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

View solution in original post

1 REPLY 1
serpiva64
Solution Sage
Solution Sage

Hi,

if your model is not too huge you can create a calculate column

serpiva64_0-1649403557028.png

then use in your card 

serpiva64_1-1649403609487.png

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.