Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
if there there are 2 legends and for one value only one legent have value then i dont want to show that legend. means if both legends have value then only bar should be shown (Source is SSAS)
Solved! Go to Solution.
Create these measures in your SSAS model and use the third one in the visual.
COUNTROWS(
FILTER(
ALLSELECTED( 'Legend'[Legend] ),
NOT ISBLANK( CALCULATE( [Amount] ) )
)
)
COUNTROWS( ALLSELECTED( 'Legend'[Legend] ) )
IF(
[Legends with data count] = [Legends required count],
[Amount],
BLANK()
)
Create these measures in your SSAS model and use the third one in the visual.
COUNTROWS(
FILTER(
ALLSELECTED( 'Legend'[Legend] ),
NOT ISBLANK( CALCULATE( [Amount] ) )
)
)
COUNTROWS( ALLSELECTED( 'Legend'[Legend] ) )
IF(
[Legends with data count] = [Legends required count],
[Amount],
BLANK()
)