Forum Discussion

PowerBI-Newbie's avatar
2 years ago
Solved

Parameter slider to remove bars higher than selected value

Hi, I have a clustered column chart and I added a parameter slider to the Y-Axis (see image below):   What I want to achieve is when the user changes the slider/value and thus the Y-Axis max...
  • SamWiseOwl's avatar
    2 years ago

    Hi PowerBI-Newbie 
    Create a measure that says:
    Show or Hide measure =
    If( [SrStatusCalculation] > SelectedValue(table[srStatusSliderMax]), BLANK(), [SrStatusCalculation] )
    Use BLANK if you want the column to disappear or 0 to keep the column but show empty.

  • SamWiseOwl's avatar
    SamWiseOwl
    2 years ago

    Hi PowerBI-Newbie 

    Oh that is awesome, I will be making more videos but got side tracked by having children 😂

     

    The measure will effectively replace the Y axis calculation, so something like this:
    If( COUNT(Issues[Incident Date]) > [MaxChart All Faults Count - All], BLANK(), COUNT(Issues[Incident Date]) )

     

    Let me know how you get on 🙂

    Also if you didn't know we have full free video courses you can watch!