Forum Discussion

flare_11's avatar
flare_11
New Member
5 years ago
Solved

Hide responses in visual (100% stacked column chart) where respondents are less than 5

I am new to Power BI and am learning every single day. I have a data source that is currently in the form of a 100% stacked bar chart (survey). The responses are in the form of strongly agree, agree,...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi flare_11 ,

     

    Please try the following formula:

    Measure = 
    var _percentage=DIVIDE(CALCULATE(COUNT('Table'[ID]),ALLEXCEPT('Table','Table'[Responses Type])),COUNTROWS(ALL('Table')))
    return IF(COUNT('Table'[ID]) <5,0,_percentage)

    The final output is shown below:

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.