This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi All,
I have below dataset and required output in screenshot.
I would like to create Flag column in power query with below conditions
if Count is blank, all rows should be flagged as 1
if Count is not blank, I would like to Flag rows only for Ref 11,21 and 3.
for Ref 11,21 and 3, if Count is 2, Flag only Row where Type ="B"
Solved! Go to Solution.
Hi @rob_vander2 ,You could achive this by custom column and if condition please try these
Filter the Rows:
Hi @rob_vander2 , here's a solution you can check out. I'll attach a snippet of M code I used. Thanks
Hi @rob_vander2 , here's a solution you can check out. I'll attach a snippet of M code I used. Thanks
Hi @rob_vander2 ,You could achive this by custom column and if condition please try these
Filter the Rows:
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |