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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors