Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi folks,
I have a requirement in which I need to categorize values in App column in three categories based on the values of DeviceCompliant column.
If a particular App has both True and False , then the new column should show "Both",otherwise it would be either "true" or "False" value.
I have made a table with dummy data-
| App | DeviceCompliant |
| A | TRUE |
| B | FALSE |
| A | FALSE |
| C | TRUE |
| B | TRUE |
| D | FALSE |
| E | TRUE |
And Below is the desired result-
| App | New Column |
| A | Both |
| B | Both |
| C | TRUE |
| D | FALSE |
| E | TRUE |
Please let me know if we could achieve it at the query editor or both report and query editor.
Solved! Go to Solution.
Hello,
Here is a suggestion :
You can do a Group By with Concatenation as exlained here :
https://gorilla.bi/power-query/group-by-to-concatenate-text/
Then create a conditional column with a Text.Contains to get the final result.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @monishamathew ,
I am sending the measure sample I created with the screenshot.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best regards 🙂
Hi @monishamathew ,
I am sending the measure sample I created with the screenshot.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best regards 🙂
Thanks for the quick response. This works for me.
Hello,
Here is a suggestion :
You can do a Group By with Concatenation as exlained here :
https://gorilla.bi/power-query/group-by-to-concatenate-text/
Then create a conditional column with a Text.Contains to get the final result.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks. This also works for me.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 7 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 22 | |
| 14 | |
| 11 | |
| 10 | |
| 9 |