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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.