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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Topgunz786123
Regular Visitor

IF / OR Statement

 Good afternoon All,

 

I wanted to know how to use IF / OR statement for the following:

 

I have client buckets such as TX, SC, and RC. What I want is if there is a Current Client in TX or a Current Client in SC or a Current Client in RC, to produce a value. If there isn't a Current Client in either of the three buckets, to produce a value of none / blank.

 

 

I tried this but it didnt' work:

 

Column = if('AccountAsset-WhiteSpace-GraySpace'[TX]="Current Client", OR('AccountAsset-WhiteSpace-GraySpace'[SC]="Current Client", OR('AccountAsset-WhiteSpace-GraySpace'[RC]="Current Client")))

 

 

Is there an easy way to do this?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Topgunz786123

 

Ty this.

 

Column = IF('AccountAsset-WhiteSpace-GraySpace'[TX]="Current Client" ||'AccountAsset-WhiteSpace-GraySpace'[SC]="Current Client" ||'AccountAsset-WhiteSpace-GraySpace'[RC]="Current Client", "YOUR_VALUE" , BLANK() )

 

You can apply a page filter on this colun for "YOUR _VALUE".

 

Thanks

Raj

View solution in original post

Anonymous
Not applicable

The syntax of IF is not correct. Please check the one i have provided above.

 

Thanks

Raj

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Topgunz786123

 

Ty this.

 

Column = IF('AccountAsset-WhiteSpace-GraySpace'[TX]="Current Client" ||'AccountAsset-WhiteSpace-GraySpace'[SC]="Current Client" ||'AccountAsset-WhiteSpace-GraySpace'[RC]="Current Client", "YOUR_VALUE" , BLANK() )

 

You can apply a page filter on this colun for "YOUR _VALUE".

 

Thanks

Raj

I tried this:

 

Column = if('AccountAsset-WhiteSpace-GraySpace'[TX]="Current Client", 'AccountAsset-WhiteSpace-GraySpace'[SC]="Current Client", 'AccountAsset-WhiteSpace-GraySpace'[RC]="Current Client", "True", BLANK())

 

but getting the message "Too many arguments were passed to the IF function. The maximum argument count for the function is 3"

Anonymous
Not applicable

The syntax of IF is not correct. Please check the one i have provided above.

 

Thanks

Raj

The syntax your provided above worked perfectly.

 

Thank you Raj, for all of your help. 

nirvana_moksh
Impactful Individual
Impactful Individual

Did you want something like below:

 

Capture.PNG

This looks great; however, I want to be able to filter out Current Clients that are in TX or SC or RC. If clients are in TX or SC or RC, I want to use that on the page filter. 

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors