Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
7 | |
7 | |
6 |
User | Count |
---|---|
18 | |
14 | |
11 | |
9 | |
7 |