Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi All
Paul
Solved! Go to Solution.
Hi @admin11 ,
If you want to display negative numbers as positive numbers, for example, -5778.00 is displayed as 5778.00, then try the following formula.
AR_AMT_NEW =
var _sum = sum(AR[A/R amount include GST in LC])
return
SWITCH(
TRUE(),
ROUND(_sum,0)=0, blank(),
_sum<0, _sum*-1,
_sum
)
If you want to display negative numbers as empty values, then try the following formula.
Measure =
var _sum = sum(AR[A/R amount include GST in LC])
return
IF(
ROUND(_sum,0) = 0 || _sum < 0,
blank(),
_sum
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Add -1 before IF
AR_AMT_NEW = -( if(ROUND(sum(AR[A/R amount include GST in LC]),0)=0, blank(),sum(AR[A/R amount include GST in LC])) )
You can also use ABS function
AR_AMT_NEW = ABS(if(ROUND(sum(AR[A/R amount include GST in LC]),0)=0, blank(),sum(AR[A/R amount include GST in LC])))
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
@admin11 , Try a measure like
AR_AMT_NEW =
var _1 = sum(AR[A/R amount include GST in LC])
return
Switch( Round(_1,0)=0, blank()
_1 <0 , _1*1 ,
_1)
Hi @admin11 ,
If you want to display negative numbers as positive numbers, for example, -5778.00 is displayed as 5778.00, then try the following formula.
AR_AMT_NEW =
var _sum = sum(AR[A/R amount include GST in LC])
return
SWITCH(
TRUE(),
ROUND(_sum,0)=0, blank(),
_sum<0, _sum*-1,
_sum
)
If you want to display negative numbers as empty values, then try the following formula.
Measure =
var _sum = sum(AR[A/R amount include GST in LC])
return
IF(
ROUND(_sum,0) = 0 || _sum < 0,
blank(),
_sum
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
87 | |
78 | |
62 | |
61 | |
60 |
User | Count |
---|---|
160 | |
114 | |
100 | |
74 | |
65 |