Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Group Slicer into One Button

Hey guys!
I have a slicer that is related with Companies. It's a Lead origin dashboard.

I have N numbers of each item. 

So I need to "group" the first 4 items to one button/radio button and the last item to other radio button.

 

I've tried to create a new table with DAX but as a newbie, no success 😞

Any tips? 😄

Thanks!

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

     

    Based on your description, you can create a calculated column as follows.

    Here is my test table.

     

    category = IF('Table 4'[Column1] in {"A","B","C","D"},"X",[Column1])

     

    Result:

     

    Hope that's what you were looking for.

    Best Regards,

    Yuna

     

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

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Based on your description, you can create a calculated column as follows.

    Here is my test table.

     

    category = IF('Table 4'[Column1] in {"A","B","C","D"},"X",[Column1])

     

    Result:

     

    Hope that's what you were looking for.

    Best Regards,

    Yuna

     

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      I really love you  ❤️

       

      Thanks a lot!!!