Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello, I have a matrix with monthly costs, along with the variances from month to month. I have a slicer to select the year, but I also want to inlcude the cost for the previous December, in order to calculate the Decemeber Prior Year/January variance. See screen shot below.
Prior December measure:
Here is the link to the pbix.
https://drive.google.com/file/d/1V1M0Dho5P7ICGhvXTBaPPwaUNpzOs1_E/view?usp=drive_link
Thank you in advance,
Solved! Go to Solution.
Sorry about the previous post. The following formula works
Please change replace ALL with ALLSELECTED . Hope it works.
DecCostPriorYr =
VAR YearSelectedLessOne =
SELECTEDVALUE(PlanCost[Year]) - 1
VAR CostCalc =
CALCULATE(SUM(PlanCost[Cost]),
FILTER(ALLSELECTED(PlanCost),
PlanCost[Month] = 12 &&
PlanCost[Year] = YearSelectedLessOne))
RETURN
CostCalc
Thank you for the quick response. Unfortunately, that did not work, all values are blank when using ALLSELECTED.
Sorry, I am unable to access the Googledrive link. Could you change the permission to anyone with link can download?
I'm so sorry, here is the new link.
https://drive.google.com/file/d/1V1M0Dho5P7ICGhvXTBaPPwaUNpzOs1_E/view?usp=sharing
Sorry, I am unable to find the pbix file in any of the folders. Could you please send the link for the pbix file?
Is this what you see when clciking the link? Is the download icon available?
Sorry about the previous post. The following formula works
User | Count |
---|---|
80 | |
74 | |
63 | |
61 | |
45 |
User | Count |
---|---|
108 | |
97 | |
88 | |
81 | |
61 |