The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I need to get the MAX (or last value) of a previous month for a measure [WhatdoesYTDtotalneedtobe]
I have tried using this DAX as both a measure and a column, but it only returns blanks.
var current_month= MONTH(TODAY()) return CALCULATE(SUM('2022 GOals'[WhatdoesYTDtotalneedtobe]),FILTER('Dates',MONTH('Dates'[Month])=current_month -1))
Any ideas?
Thanks!
If I use this DAX:
I created a column which shows me the last day of the previous month:
@KW123 Hard to say without actual example data. You can get last month by using EOMONTH([Date], -1) that will get you the last day of the month, is that what you want? Or do you want to get MAXX of some value that exists in the last month?
@Greg_Deckler Thanks for the reply!
I have a separate column already with the previous days. I'm looking for a measure which will return the last day (is the same as the max) $ value from the previous month.
My DAX measure for the column I need is
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |