Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Solved! Go to Solution.
Hi,
Your dax measure looks okay to me. are you passing the right measures? if yes, try this workaround:
Budget Variance % =
VAR varResult =
IF(
[Financial value Var] < 0 && (ISBLANK([Financial Value2]) || [Financial Value2] = 0),
0,
DIVIDE([Financial value Var], [Financial Value2], 0)
)
RETURN
IF(
ABS(varResult) > 1E10 || ABS(varResult) < 1E-10,
0,
varResult
)
ABS(varResult) > 1E10 || ABS(varResult) < 1E-10: This checks if the absolute value of varResult is greater than 10^{10} (a very large number) or less than 10^{-10} (a very small number). change the exponent value accordingly.
Hi,
This simplified measure should work
Budget Variance % = IF([Financial value Var] < 0,0,DIVIDE([Financial value Var], [Financial Value2],0))
Hope this helps.
Hi,
Thanks for the solution @Ashish_Mathur and @Shravan133 offered, and i want to offer some more information for user to refer to.
hello @Pooja_Dasani_98 ,
Please check that if your data type of the [Financial Value2] measure is Decimal number, but you don't keep one or two decimal places, then it will dispaly 0, but in fact, there are numbers after the decimal point, in this situation , it will return the value, you can refer my sample.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you @Ashish_Mathur , and @Shravan133 both of the solutions worked.
@v-xinruzhu-msft , thank you for this info.
Hi,
This simplified measure should work
Budget Variance % = IF([Financial value Var] < 0,0,DIVIDE([Financial value Var], [Financial Value2],0))
Hope this helps.
Hi,
Your dax measure looks okay to me. are you passing the right measures? if yes, try this workaround:
Budget Variance % =
VAR varResult =
IF(
[Financial value Var] < 0 && (ISBLANK([Financial Value2]) || [Financial Value2] = 0),
0,
DIVIDE([Financial value Var], [Financial Value2], 0)
)
RETURN
IF(
ABS(varResult) > 1E10 || ABS(varResult) < 1E-10,
0,
varResult
)
ABS(varResult) > 1E10 || ABS(varResult) < 1E-10: This checks if the absolute value of varResult is greater than 10^{10} (a very large number) or less than 10^{-10} (a very small number). change the exponent value accordingly.
User | Count |
---|---|
117 | |
75 | |
62 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |