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
Anonymous
Not applicable

Query across multiple columns

Hi, I am looking for help with a query I want to run on a dataset. I have a number of different columns I would like to set arguments for. All columns are numeric but I would like to set a threshold for each column in the query. For example:

 

Columns: A:9 B:8 C:6 D:6 E:9

 

Query: If 'A>7' and 'B>=8' and 'C=6' then 'True'

 

I have thought about making a True/False column based on each arguement and then filtering out all False columns but I would like to see all the data still really, with the True / False argument as a custom column within the dataset.

 

Grateful for any help 

 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

@AnonymousYou can add a True/False column in Power Query Editor and apply the changes to Power BI Desktop. Then go to Desktop and use a slicer or filters to select True/False to determine which values you want to see in your report rather than filter out all False values in Query Editor.

 

Best Regards,

Community Support Team _ Jing Zhang

If this post helps, please consider Accept it as the solution to help other members find it.

amitchandak
Super User
Super User

@Anonymous , Not very clear, Try like

if([A]>7 && [B]>=8 && [C]=6 , true(), false())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.