Forum Discussion

asmpbi's avatar
asmpbi
New Member
2 years ago
Solved

Supress Cell Count Error in Stacked Bar Chart

Hi everyone! I am running into a problem with my data visualization.   Context: I am trying to display survey results with a 100% stacked bar chart. The responses use a Likert Scale (1.Strongly Dis...
  • vanessafvg's avatar
    2 years ago

    give this a try?

    Supress_Cell =
    VAR qst =
    SELECTEDVALUE ( [question] )
    VAR result =
    CALCULATE (
    DISTINCTCOUNT ( 'DataTable'[form_submission] ),
    'DataTable'[question] = qst,
    REMOVEFILTERS ( 'DataTable'[Likert scale] )
    )
    RETURN
    IF ( result >= 5, 1 )


    you can then use this as a flag on your visual, place on the filter area of the visual and select 1