This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Solved! Go to Solution.
Hi , @Anonymous
There are some minor errors in format.
The table name is recommended to be enclosed in quotation marks, and the values "A", "B", "C" only need to be enclosed in quotation.
colummn =
IF (
( 'Table'[TERMS] = "A"
&& 'Table'[Mat] IN { "X" } )
|| (
'Table'[TERMS] = "B"
&& CONTAINSSTRING ( 'Table'[Mat], "XE" )
),
"C",
'Table'[TERMS]
)
PS:You can check whether there is an error in the sentence through this website, but the specific error still has to be debugged by yourself
http://www.daxformatter.com/
Best Regards,
Community Support Team _ Eason
Hi , @Anonymous
There are some minor errors in format.
The table name is recommended to be enclosed in quotation marks, and the values "A", "B", "C" only need to be enclosed in quotation.
colummn =
IF (
( 'Table'[TERMS] = "A"
&& 'Table'[Mat] IN { "X" } )
|| (
'Table'[TERMS] = "B"
&& CONTAINSSTRING ( 'Table'[Mat], "XE" )
),
"C",
'Table'[TERMS]
)
PS:You can check whether there is an error in the sentence through this website, but the specific error still has to be debugged by yourself
http://www.daxformatter.com/
Best Regards,
Community Support Team _ Eason
HI @Anonymous
Column = if(((Table[TERMS]="A" && Table[Mat]="X")||(Table[TERMS] = "B" && FIND("XE",Table[Mat])>0),
C,TABLE[TERMS])FiND is a better option in this scenario as CONTAiNSSTRiNG is used to match patters and we are not looking for a pattern.
Well, it looks correct. Are you facing any issue while writing that dax?
@Anonymous
why not? it looks correct but i would write it as
Column = if(
(
(Table[TERMS] = "A" && Table[Mat] = "X")
||
(Table[TERMS] = "B" && CONTAINSSTRING(Table[Mat],"XE")
),
C,
TABLE[TERMS]
)
Check out the April 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 |
|---|---|
| 35 | |
| 33 | |
| 26 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 36 | |
| 32 | |
| 26 | |
| 23 |