Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |