March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Trying to convert negative values into positive and positive values as blank. Challenge is that the Total still considers the blank values. How to not have it consider the blank values? The calculated column option would be a good one but calculated column doesnt take a dax measure as input.
For example, the RC Volume Difference total considers the 32.53 value and I converted it to 0 but still the total considers it. Dont know how to solve this problem.
Solved! Go to Solution.
use this pattern in your measure :
measure =
var ds =
addcolumns(
values(datetable[date]) ,
"rc vol diff" ,
switch(
true() ,
[your measure] < 0 , abs([mesaure]) ,
[your measure]>0 , [measure] * -1 ,
[your measure]
)
return
sumx ( ds, [rc vol diff] )
let me know if this works for you .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
Hi, @MusaabYaqub
Based on your description, I have created a measure and a new column to achieve the effect you are looking for. Following picture shows the effect of the display.
Measure:
New RC Volumn Difference1 =
CALCULATE ( MAX ( 'Table'[RC Volumn Difference] ) )
New Column:
New RC Volumn Difference =
VAR _selectedValue = 'Table'[New RC Volumn Difference1]
VAR _RCVolumnDifference =
IF ( _selectedValue <= 0, ABS ( _selectedValue ), 0 )
RETURN
_RCVolumnDifference
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
use this pattern in your measure :
measure =
var ds =
addcolumns(
values(datetable[date]) ,
"rc vol diff" ,
switch(
true() ,
[your measure] < 0 , abs([mesaure]) ,
[your measure]>0 , [measure] * -1 ,
[your measure]
)
return
sumx ( ds, [rc vol diff] )
let me know if this works for you .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |