Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi All,
I am trying to write a measure which is required to lookup text values in a column and then complete a simple division if the results are true. This proved easy enough when only one value was required but now I need two - the result basically being if either of the two applies then the division will be the result, if not then it should just be blank.
The measure I had for one was as follows;
Measure = IF(CONTAINS('Data','Data'[Category],"GP"),
DIVIDE([Current Year Actual],[Current Year Budget]))
Many thanks,
Solved! Go to Solution.
Hi @Gazsim44
You could use the OR function.
Measure = IF(OR(CONTAINS('Data','Data'[Category],"GP"),CONTAINS('Data','Data'[Category],"Other Value")), DIVIDE([Current Year Actual],[Current Year Budget]))
Hope this helps
Thanks,
George
Hi @Gazsim44
You could use the OR function.
Measure = IF(OR(CONTAINS('Data','Data'[Category],"GP"),CONTAINS('Data','Data'[Category],"Other Value")), DIVIDE([Current Year Actual],[Current Year Budget]))
Hope this helps
Thanks,
George
Thanks George!
Sounds obvious now you mention it - just didnt think! 🙂
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |