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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Poma
Frequent Visitor

Show only Previous Month name

Hi,
I am trying to create a dynamic title to show the previous month name:

 

Title_Total in Previous Month = "Total in "& FORMAT( MONTH(TODAY()) -1, "MMMM")
 
Right now we are in August so I wanted it to show me July but it is showing me January.
 
Poma_0-1628147806250.png

 

 
Can someone help me to solve this issue pls.
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Please try the below.

 

Title_Total in Previous Month =
"Total in "&
FORMAT(EOMONTH(TODAY(),-1), "MMMM")
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Poma
Frequent Visitor

I cleaned the cached and its correct now 🙂 thanks

Jihwan_Kim
Super User
Super User

Please try the below.

 

Title_Total in Previous Month =
"Total in "&
FORMAT(EOMONTH(TODAY(),-1), "MMMM")
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Hi @Jihwan_Kim 
Thank you for your responce. It is wierd becouse I 3 card, with your dax 2 of them are showing the correct monthname "July" but one of them is still showing January

😞

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.