Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
12 | |
10 | |
8 | |
7 | |
7 |
User | Count |
---|---|
20 | |
14 | |
11 | |
10 | |
10 |