Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello! I need to calculate prior month and year over year variances. My data model (I have access to Report Builder, not the underlying data) has a field for month and a field for year. Both have the sigma sign next to them and I seem to be unable to use those fields as they are in quick measures.
How can I create the measures I need for prior month and year over year variances?
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I hope the below can provide some ideas on how to create a solution for your datamodel.
I use EOMONTH DAX function, and the description of the dax function's link is down below.
EOMONTH function (DAX) - DAX | Microsoft Learn
Prev month sales measure: =
VAR _previousmonthenddate =
EOMONTH ( MAX ( Sales[Date] ), -1 )
RETURN
SUMX (
FILTER (
ADDCOLUMNS ( ALL ( Sales ), "@monthenddate", EOMONTH ( Sales[Date], 0 ) ),
[@monthenddate] = _previousmonthenddate
),
Sales[Sales]
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |