Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello I created a YoY measure that outputs blank values if the YoY divison formula outputs a -1 or 0. This works fine for graphs, but when I use this measure in a matrix, the total is very off. This is because I do not have complete data for both years, -- there are some months without data.
So, how do I get the total displayed in the matrix to only do the YoY calc for months for which I have both 2018 and 2019 data, and ignore months that don't overlap.
Here is the measure I am using:
Solved! Go to Solution.
Hi @Anonymous ,
You could use IF() and ISINSCOPE() funcitions to change the last value.
Here is my test file for your reference.
Hi,
could anybody just write the applied measure or explain the measure. I do not understand why we need a primary key here index to refer to in column1, do we not have to reference to date and the the selected measure as well as year to date measure applied to above problem? So like measure = a= max (date(date)
return IF(ISINSCOPE(date(date, calculate (selectedmeasure), filter (date(date), selectedmetrics))?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 25 |
| User | Count |
|---|---|
| 124 | |
| 87 | |
| 70 | |
| 66 | |
| 65 |