Forum Discussion
Title Switcher with Calculation Groups
Hi Anonymous ,
The reason for the error is that "True" is a Text type, and the type returned by _Selection is a Boolean type, which cannot be compared directly.
The formula needs to be converted as follows:
MeasureTitleswitcher =
VAR _Selection =
SELECTEDVALUE ( '% Anteile'[Name] ) = "% - Werte"
RETURN
IF ( _Selection, "-Anteil", " " )
MeasureTitleswitcher =
VAR _Selection =
SELECTEDVALUE ( '% Anteile'[Name] ) = "% - Werte"
VAR _LogicTest =
IF ( _Selection, "-Anteil", " " )
VAR _SelectedKPI =
SELECTEDVALUE ( 'KPI'[Name] )
RETURN
_SelectedKPI & " "
& IF ( _Selection, "- Anteil", " " )
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Hi Henry,
thanks for the help, for me it doesnt solve the problem. But my button to switch from percentage to absolute number is from a calculation group with only one measure and you have a slicer with two.
What should the measure be for absolute? I made it to be SELECTEDMEASURE() but this doesnt bring me the old error. My titleswitcher is formatted as text if this is from relevance.Thanks again, Michaela