Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have simple model fact and comparison (Dim).
Due to performance issue fact was design with duplicated rows. each period has value for (1) CY and (2) PY.
i created calucation group that is calculating value for CY and PY as:
CY =
CALCULATE(
SELECTEDMEASURE(),
REMOVEFILTERS(Comparison[ComparisonId]),
Comparison[ComparisonId] = 1
)
It works but when i add it to matrix as below, when Comparison from dim is selected, then other value is hidden (in this case when CY is selected PY is hidden).
Is there option to force CG to ignore comparison selection? So regardeles slicer selection always CY and PY will be visible? Switching of interaction is not an option due to page requirement and other measures presented in the matrix (CY, PY, delta, % change, calculation related to CY or PY based on selection)
currently when slicer value is selected the other one goes blank
Solved! Go to Solution.
@szczawekk To ensure that the slicer selection does not affect the visibility of CY and PY, you can try using the ALL function within your calculation group definitions
CY =
CALCULATE(
SELECTEDMEASURE(),
ALL(Comparison[ComparisonId]),
Comparison[ComparisonId] = 1
)
PY =
CALCULATE(
SELECTEDMEASURE(),
ALL(Comparison[ComparisonId]),
Comparison[ComparisonId] = 2
)
Proud to be a Super User! |
|
@szczawekk To ensure that the slicer selection does not affect the visibility of CY and PY, you can try using the ALL function within your calculation group definitions
CY =
CALCULATE(
SELECTEDMEASURE(),
ALL(Comparison[ComparisonId]),
Comparison[ComparisonId] = 1
)
PY =
CALCULATE(
SELECTEDMEASURE(),
ALL(Comparison[ComparisonId]),
Comparison[ComparisonId] = 2
)
Proud to be a Super User! |
|
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |