Forum Discussion

MohannadSh1996's avatar
MohannadSh1996
Icon for Microsoft Employee rankMicrosoft Employee
6 years ago
Solved

Filtering based on a specific value and any other values

Hi,  I have a column with many values and the number of values is changing dynamically day by day.  For example, i have this data: Id 6rc1234vda_id 5211031330_id 3054029377_id 9...
  • mahoneypat's avatar
    6 years ago

    If that first value doesn't change, you could add a Groups column with two buckets (the top one and "other values").  See this link

    https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning

     

    If it does change, you can do it in the query editor too.  Just add an Index column starting from 1, and then add a custom column with this formula

     

    = if [Index] =1 then "First Value" else "Other Values"

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat