Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table of data. One of the columns contains a number + letter combination to identify the item. Like 1A, 1B, 1C, 2A, 2B, 2C, M1A, C1A, etc. I would like to create a grouping of the rows that match a certian name, and then reference this grouping in other calculation. So say "Group 1" is 1A, 1B, 2A, 2B. How would I go about this?
Thanks
Hi,
You can create conditional forum that will transform source IDs into Groups.
Sample conditions:
If ID column equals "1A" then "Group 1"
If ID column equals "1B" then "Group 1"
If ID column equals "2A" then "Group 1"
If ID column equals "2B" then "Group 1"
After that you will be able to GroupBy on New Group column. Hope it helps.
Hi @MichaelRensing,
to group rows by column values in Power BI Desktop, you can use the Group By feature in Power Query Editor. Here are the steps to do it:
You should see a new column with your groups and their counts. You can use this column to reference your groups in other calculations.
Does this help? If so please mark this answer as accepted solution.
@DataVizzer It makes sense, but I cannot figure out the second to last item. There doesn't seem to be a way to specify Item = 1A
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
65 | |
64 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |