This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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?
Solved! Go to Solution.
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
The syntax of IF is not correct. Please check the one i have provided above.
Thanks
Raj
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"
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.
Did you want something like below:
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.
Check out the May 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 |
|---|---|
| 32 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |