Forum Discussion

ashwingupta's avatar
ashwingupta
Frequent Visitor
2 years ago
Solved

Dynamic categorization based on dynamic value

Hi,    My data contains User Codes and Amounts   Amounts range from $0 to $100,000,000. I want to allow the user to categorize each User Code based on a user controlled thresold. I have been tryi...
  • vicky_'s avatar
    2 years ago

    One way of acheiving this is through numeric range parameter: go to Modeling > New Parameter > Numeric Range to create a slicer. Note - this won't be dynamic, so you'll need to know the range of values for your Amounts. If that isn't really an option, then you can manually do the same thing by creating a calculated table with GENERATESERIES(). 

     

    Then you can create measures such as 

    Below Threshold Users = COUNTROWS(FILTER(UserCodes, UserCodes[Amount] <= Parameter[Parameter Value]))

     to use in your pie chart.