Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sfolkes80
New Member

Help Create Rule

sfolkes80_0-1664482379649.png

 

I have been trying to write a rule and It is not working.  If the Series Collection contains both Number of Bowls ( Double and Single) then Yes, else no.. So if the series collection only has Single, it should flag NO.  How can I write this rule.  I am not having any luck

3 REPLIES 3
sfolkes80
New Member

Should I merge the series collection field and number of bowls? I want PQ to look at both series collection and number of bowls field

should this work.

=let a=Table.Buffer(Table.Group(PreviousStepName,"Series/Collection",{"Flag",each if List.ContainsAll([Number of Bowls],{"Double Bowl","Single Bowl"}) then "Yes" else "No"})) in Table.AddColumn(PreviousStepName,"Flag",each a{[#"Series/Collection"=[#"Series/Collection"]]}?[Flag]?)

Thank you Daniel for looking into this for me.  So my previouse step, I merged the series collection and number of bowl, so I applied the formula and  now I am getting this error

sfolkes80_0-1664551693292.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.