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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
agd50
Helper V
Helper V

Dynamic Month text - DAX

I want to show the text of a month ie January instead of the number. Here is what I have currently.

 

 

 

Title Page Sub Title text = 
 Var Year = INT ( YEAR ( TODAY () ) )
 Var Quarter = INT ( FORMAT(NOW (),
 "q" ) )
 Var Month = MONTH (TODAY () )

 Return
 
"1"&" "&Month-2 & " " & " " &"-"&" "&Month-3& "31" " " & Year

 

 

 


It shows 11 instead of November. How do I get it to show November instead? (Also an error message will appear due to the numbers next to month as I want to select the months)

TIA

1 ACCEPTED SOLUTION

3 REPLIES 3
ppm1
Solution Sage
Solution Sage

Please try this approach instead.

 

ThisMonth = FORMAT(TODAY(), "1 MMMM - \QQ yyyy")
 
Pat
Microsoft Employee

Love it, only issue is that it won't let me add -1 after the return so I can change the month.

try this

Screenshot_3.png

Screenshot_2.png

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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