Forum Discussion
Grouping data in a column
- 4 years ago
Hi,
in Power BI, click on the column (ellipsis icon near to the column (...)), then select New Group,
On the shown page, select the value(s) in the left hand and put it in the right section by clicking Group Button or double click on the value :
- Double Click on the title in the right hand and rename it as you want
Then click Ok, Now you have a group of 'Blank' and 'Not Stated' value with 'Unknown' name and could use this new column (group column) in you visuals
Hi,
just add a calculated column to your table where you do something like this:
MyNewGroup := IF(ISBLANK([myColumn]) || [myColumn] = "Not Stated", "Unknown", [myColumn])
And place this new column on your table/matrix/whatever
br
- Chainfire744 years agoHelper I
Thanks for your reply. Me being silly, the cell isn't blank but the word in the cell is "Blank". Do you know what the formula would be for this?
Thanks
- lukiz844 years agoMemorable Member
Sure,
MyNewGroup := IF([myColumn] = "Blank" || [myColumn] = "Not Stated", "Unknown", [myColumn])
But MahyarTF's solution seems a little nicer.
- Chainfire744 years agoHelper I
Thanks a lot!