Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I have a challenge applying calculation groups that I hope you can help me with. I have attached a snapshot of my data set below:
The version columns tell us if the numbers are actual values or budgeted numbers. The actual/outlook columns tell us if the value is an actual number, our latest forecast (Outlook), or the forecast we made last month (Outlook LM).
So I have a measure picking up Actual/Outlook numbers compared to a comparison measure that picks up budget numbers, actuals from the past years, or the Outlook that was made last month. Currently, I am using switch functions to pick a measure that selects values based on the version. It looks like the below, including the output table
Actual/Outlook measure=
CALCULATE (
SUM ( Financials[Value] ),
OR (
Financials[Actual/Outlook] = "Actual",
Financials[Actual/Outlook] = "Outlook"
))
Comparison Selection =
SWITCH (
TRUE (),
'Metric Selection Comparison'[Metric Select Comparison] = "Last Year", 'Metric Selection Comparison'[Comparison_Lastyear],
'Metric Selection Comparison'[Metric Select Comparison] = "Budget", 'Metric Selection Comparison'[Comparison_Budget],
'Metric Selection Comparison'[Metric Select Comparison] = "Outlook LM", 'Metric Selection Comparison'[Comparison_OutlookLM],
0
)
With budget being: CALCULATE ( SUM ( Financials[Value] ), Financials[Version] = "Budget" )
Output:
This way works, but it reduces performance a bit. However, I was told about calculation groups and saw the potential for boosting my model performance. So I created a calculation group for versions that considers my three scenarios; Budget, Last Year, and Outlook LM. It works perfectly when I use the calculation group for the comparison measure in the slicer. However, my actual measure doesn’t work anymore, and no matter what I do, it returns the exact same value as my comparison measure. Below are my two measures.
Acutal: CALCULATE (
SUM ( Financials[Value] ),
all(Financials),
OR (
Financials[Actual/Outlook] = "Actual",
Financials[Actual/Outlook] = "Outlook"
)
)
Comparison tester =
sum(Financials[Value])
This makes me wonder if two measures can co-exist with the calculations group and, if so, how to manage it.
Thank you in advance
Solved! Go to Solution.
Hi @SMJENSEN ,
You can refer to the blog:
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @SMJENSEN ,
You can refer to the blog:
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I'm understanding the problem correctly...
The moment a calculation group is in use in a visual every measure gets pushed through it.
To display the original value of the plane measure as well you need to add an extra calculation group item which is simply SELECTEDMEASURE()
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 |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |