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
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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