The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I'm having an odd issue, to display the "+" or "-" signs on my measure result I have a quite straight forwards IF statement
ValueTendens=
VAR RESU = ROUND(([VALUE1]-[VALUE2]);0)
RETURN IF(RESU>0;"+"&RESU;RESU)
The thing is when the result is positive it displays as expected, a rounded number (+4) but when the result is negative it displays not rounded (-3,1212).
I don't get it.
Solved! Go to Solution.
hi @KelvinMorel
try include RESU into format. it looks like data types issue
ValueTendens =
VAR RESU = ROUND(([VALUE1]-[VALUE2]);0)
RETURN IF(RESU>0;"+"&RESU;format(RESU;""))
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi,
I'm sorry, just found a workaround, I guess:
ValueTendens=
VAR RESU = ROUND(([VALUE1]-[VALUE2]);0)
RETURN IF(RESU>0;"+"&RESU;""&RESU)
I'm still not understanding why, any explanation it's welcome.
hi @KelvinMorel
try include RESU into format. it looks like data types issue
ValueTendens =
VAR RESU = ROUND(([VALUE1]-[VALUE2]);0)
RETURN IF(RESU>0;"+"&RESU;format(RESU;""))
do not hesitate to give a kudo to useful posts and mark solutions as solution
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |