March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hey everyone!
I will now present the scenario I have, and I need your help to see how you would approach it. I have “solved” it in an incorrect way because my solution consumes too many resources and is inefficient
I have 5 measures, measure1, measure2 … measure5.
These measures visually need to be grouped (as a visual separation without totaling) into two groups:
Group 1: measure1 …3
Group 2: measure4, measure5
For each measure, I have:
Budget, Real, Budget LY, Real LY, Budget YTD, Real YTD, Budget LYTD, Real LYTD.
I have 2 companies:
Company 1, Company 2.
The measures were developed before the existence of calculation groups (but I don’t know if the solution involves calculation groups).
Now I will show you the grid structure I am looking to visualize.
I need your help on how you would approach the problem.
Thanks in advance.
Solved! Go to Solution.
Hi @Marc76
Thank you for sharing the structure! Based on your requirements, the ideal approach to improve efficiency and avoid redundancy is to leverage Calculation Groups in Power BI. Calculation Groups allow you to create a set of dynamic measures (like Budget, Real, LY, YTD, etc.) that can be applied across different base measures (Measure1, Measure2, etc.), making the model more efficient.
Here's a suggested approach:
In Power BI, you can create Calculation Groups using Tabular Editor (either the free external Tabular Editor or the built-in Tabular Editor in Power BI Premium).
Open Tabular Editor:
Create a Calculation Group for metrics like Budget, Real, LY, and YTD:
For example:
Repeat for all required metrics.
To achieve visual grouping (without totaling), you can add a Dummy Group column to your measures in the model and use it to create groups like Group 1 and Group 2. This can be done by creating a new column in your measure table.
For example:
Measure Group =
SWITCH(
TRUE(),
[Measure] IN {"Measure1", "Measure2", "Measure3"}, "Group 1",
[Measure] IN {"Measure4", "Measure5"}, "Group 2",
BLANK()
)
Then, add this Measure Group to your Rows in the Matrix visual for grouping.
This approach will:
This method should be significantly more efficient than creating individual measures for each metric and year.
Let me know if you need further clarification!
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂
Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Hi @Marc76
Thank you for sharing the structure! Based on your requirements, the ideal approach to improve efficiency and avoid redundancy is to leverage Calculation Groups in Power BI. Calculation Groups allow you to create a set of dynamic measures (like Budget, Real, LY, YTD, etc.) that can be applied across different base measures (Measure1, Measure2, etc.), making the model more efficient.
Here's a suggested approach:
In Power BI, you can create Calculation Groups using Tabular Editor (either the free external Tabular Editor or the built-in Tabular Editor in Power BI Premium).
Open Tabular Editor:
Create a Calculation Group for metrics like Budget, Real, LY, and YTD:
For example:
Repeat for all required metrics.
To achieve visual grouping (without totaling), you can add a Dummy Group column to your measures in the model and use it to create groups like Group 1 and Group 2. This can be done by creating a new column in your measure table.
For example:
Measure Group =
SWITCH(
TRUE(),
[Measure] IN {"Measure1", "Measure2", "Measure3"}, "Group 1",
[Measure] IN {"Measure4", "Measure5"}, "Group 2",
BLANK()
)
Then, add this Measure Group to your Rows in the Matrix visual for grouping.
This approach will:
This method should be significantly more efficient than creating individual measures for each metric and year.
Let me know if you need further clarification!
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂
Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
@Marc76
This could be done either using Calculation Group + Disconnected table or Disconnected table only.
For later, first, you need to define the levels GROUP, MEASURE, and BREAKUP(Budget, Real...) then build your measures based on the filter context of these fileds in the Disconnected table.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
21 | |
16 | |
14 |