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
RogerSteinberg
Post Patron
Post Patron

Measure for my title to automatically use last month name in the sentence

Hi,

 

For my report, i need my title to show last month of today's date.

 

For example, if we are Oct. 1st 2020, my report title should be

2020-Sep

 

I have a date table where my lastdate is TODAY()

How can I create a measure for this?

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@RogerSteinberg 

 

Could you please try the following:

 

Measure = DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY()))

 

Measure = FORMAT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())), "YYYY-MM")

 

View solution in original post

1 REPLY 1
themistoklis
Community Champion
Community Champion

@RogerSteinberg 

 

Could you please try the following:

 

Measure = DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY()))

 

Measure = FORMAT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())), "YYYY-MM")

 

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.