Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi All,
I am trying to add up a column by only adding up the negative numbers and if there are positive numbers, just setting those to 0 so they don't affect the final total. Here is some sample data:
As you can see - the total is -311 whereas if the positive values in here were excluded, the total would be around -850 or so. I believe it needs to something to say If Sales >0, then 0, otherwise sum up the column but i'm unsure as how to put it together. Any help would be appreciated.
Thanks!
Solved! Go to Solution.
Hi,
Please try this column:
Column = IF('Table'[Sales]>0,0,'Table'[Sales])The result shows:
Best Regards,
Giotto Zhi
Hello everyone
How can you add only positive values of a measure?
I've been trying to figure this out for days.
Rodrigo P
Hi,
Please try this column:
Column = IF('Table'[Sales]>0,0,'Table'[Sales])The result shows:
Best Regards,
Giotto Zhi
@Anonymous ,
Create below DAX measure:
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 30 | |
| 25 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 54 | |
| 34 | |
| 27 | |
| 23 | |
| 20 |