Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Experts
I have the following search formula which works fine and returns the correct result, i want to slightly change the formula so to have OR in the current measure
so the end result could be either
IF(SEARCH("compontentdissociation",'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS],1,1000)<>1000,18
OR
IF(SEARCH("dissociation",'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS],1,1000)<>1000,18
and the out put result as 18.
Solved! Go to Solution.
Hi @Anonymous ,
By my test, you also could get your desired output without using OR function. Please refer to the formula below.
Column 2 = IF ( SEARCH ( "aaa", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18, IF ( SEARCH ( "bbb", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18 ) )
Here is the output.
If you really want to use OR function, you could try this below.
Column = OR ( IF ( SEARCH ( "aaa", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18 ), IF ( SEARCH ( "bbb", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18 ) )
Best Regards,
Cherry
Hi @Anonymous ,
By my test, you also could get your desired output without using OR function. Please refer to the formula below.
Column 2 = IF ( SEARCH ( "aaa", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18, IF ( SEARCH ( "bbb", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18 ) )
Here is the output.
If you really want to use OR function, you could try this below.
Column = OR ( IF ( SEARCH ( "aaa", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18 ), IF ( SEARCH ( "bbb", 'njrew_k_prmry_bicon_outcm'[INDREV_SUMMARYREVISIONREASONS], 1, 1000 ) <> 1000, 18 ) )
Best Regards,
Cherry
many thanks cheery works prefectly....
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |