Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All
I have post a question on :-
@amitchandak offer me below expression work fine :-
Curr month = format(today(),"mmm-yyyy")
Now i try to modify the above expression to display last month :-
Curr month -1 = format(today()-1,"mmm-yyyy")
But it does not work. Hope some one can help me.
Paul
Solved! Go to Solution.
Hi, @admin11
According to your description and DAX formula, I think you can try this measure to get the last month using the Format() function:
Measure =
FORMAT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())),"mmm-yyyy")
And place this measure into a card chart:
And you can get what you want.
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @admin11 ,
Change your DAX Expression as shown below:
Previous Month = FORMAT(EDATE(NOW(),-1),"MMM-YYYY")
Please accept this as a solution if your question has been answered !!
Appreciate a Kudos 😀
Hi, @admin11
According to your description and DAX formula, I think you can try this measure to get the last month using the Format() function:
Measure =
FORMAT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,DAY(TODAY())),"mmm-yyyy")
And place this measure into a card chart:
And you can get what you want.
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
219 | |
89 | |
73 | |
66 | |
60 |