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.
Hello Experts,
I need to group/combine row variables into a specific category type. For example;
I have a column called industry category where I have row variables captured as "Supermarket/Supermarkets/SuperMkts" for three different businesses. But they are part of the same industry type. I would like to group them as "Supermarkets" so that I can visualise my data in the correct format. Now I can group them by right-clicking on the column and select "New Group". It's a cumbersome task when I need to do a similar exercise for 20k line items. I was wondering if there is a way to automate this process by writing a dax code or in power query!
I am unable to find a solution. It would be great if you could help me with this.
Thanks in advance
Regards
ronie
Solved! Go to Solution.
Hi @Anonymous
Bestway is create lookup table like below and create calculated column
In future if you want to add new values, you can simply update this lookup table.
Create calculate column
Hi @Anonymous
You can create a calcualted column like below
Hello @gvrajesh,
Thank you for your reply. I can certainly apply your logic to search a specific keyword. Unfortunately, I have plenty to look for. Can I add multiple search rules in single containsstring function? I was thinking of this way;
Hi @Anonymous
Bestway is create lookup table like below and create calculated column
In future if you want to add new values, you can simply update this lookup table.
Create calculate column
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |