Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello, I need to sum the negative and positive numbers in a column.
For example, some orders used to be cancled after it is entered. I use sumx function but the it considers the negative values as the positive ones. Please help!
Solved! Go to Solution.
Hi @JihyeHeo
what is your desired output?
if you need only sum of positive or only negative values try calculations like
CALCULATE(SUM([Sales Value]), [Sales Value]>0)
or
CALCULATE(SUM([Sales Value]), [Sales Value]<0)
Normal sum should have work.
Measure=sum(table[Amount])
Drag order number and measure in table visual.
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Hi @JihyeHeo
what is your desired output?
if you need only sum of positive or only negative values try calculations like
CALCULATE(SUM([Sales Value]), [Sales Value]>0)
or
CALCULATE(SUM([Sales Value]), [Sales Value]<0)
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
User | Count |
---|---|
22 | |
20 | |
20 | |
13 | |
13 |
User | Count |
---|---|
41 | |
28 | |
25 | |
23 | |
21 |