Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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. 

safra - Power BI Desktop.jpg

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!

1 ACCEPTED SOLUTION
v-yuaj-msft
Community Support
Community Support

Hi @Anonymous ,

 

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

Here is my test table.

v-yuaj-msft_0-1607475944127.png

 

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

 

Result:

v-yuaj-msft_1-1607475944131.png

 

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.

View solution in original post

2 REPLIES 2
v-yuaj-msft
Community Support
Community Support

Hi @Anonymous ,

 

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

Here is my test table.

v-yuaj-msft_0-1607475944127.png

 

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

 

Result:

v-yuaj-msft_1-1607475944131.png

 

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
Not applicable

I really love you  ❤️

 

Thanks a lot!!! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.