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,
I'm looking for a way to display last month in dax. I've come up with this dax :
Use the following code:
LAST_MONTH =
VAR SelectedMonths = VALUES('CalendarTable'[YearMonth])
RETURN
CALCULATE(MAX('CalendarTable'[YearMonth]), DATEADD('CalendarTable'[Date], -1, MONTH), SelectedMonths)
Please accept this as solution, if you got your answer and give kudos
Hi,
Thanks for the answer given but unfortunately it doesn't work. When I select all months it doesn't seem to be displaying the correct month, and when i select one month it just displays blank.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
10 | |
10 | |
8 | |
6 |
User | Count |
---|---|
20 | |
18 | |
16 | |
13 | |
10 |