Forum Discussion
KelvinMorel
6 years agoHelper II
DAX - ROUND with IF statement
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(...
- 6 years ago
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
KelvinMorel
6 years agoHelper II
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.
- az386 years agoCommunity Champion
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