Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I am trying to make a if statement like this
If (measure >1000, "n/m", measure)
However, in this case the i wonder if powerbi is doing the measure calculation 2 times which may significantly slower the run time.
Have been thinking to use Min(1000, Measure) but i would like to return the result "n/m" if the result is bigger than 1000
Thanks!
Solved! Go to Solution.
You can avoid calcualting the mesure twice by assigning it to a variable.
YourMeaures =
VAR _Amount = [Measure]
RETURN IF ( _Amount > 1000, "n/m", _Amount )
You can avoid calcualting the mesure twice by assigning it to a variable.
YourMeaures =
VAR _Amount = [Measure]
RETURN IF ( _Amount > 1000, "n/m", _Amount )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |