Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I am trying to group data of a column. I want to group one value in two groups, how to do it?
For Example: I am creating new column of group called Z. The column has multiple cities name of USA.
Now I am grouping them into two -A and B.
Now city "San Jose" need to be grouped as A and B also. But I am able to put it in group A OR group B. Here I want it to put in A&B both. What is the solution?
Please help!
Solved! Go to Solution.
@Anonymous
Are you expecting something like this?
Paul Zheng _ Community Support Tea
@Anonymous
Are you expecting something like this?
Paul Zheng _ Community Support Tea
@V-pazhen-msft I think this might work for small data.
For large data the nested IF with be very lengthy.
This solves my problem. I have to create a big DAX for it!
Thanks.
@Anonymous , Have two columns One for A and one for B
Have a city table with the group where you have rows for both A and B, you need to create a many to many birection join to filter
@amitchandak Thanks for your reply.
1.Imagine I have 100s of rows of data. I cannot create different columns for issues like this. The number of columns will get increasing for large data.
2. I want to use this column Z as slicer to filter data according to the grouping.
@amitchandak Sorry dear all the data is sensitive can't share.
And how to separate it with comma? Can you please help with this?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
88 | |
73 | |
54 | |
43 | |
37 |
User | Count |
---|---|
98 | |
64 | |
54 | |
48 | |
45 |