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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Super User
Super User

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
Super User
Super User

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.