Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi Everyone,
I have a table that looks like this:
| Order Date | Order Number | Customer Number | Article Number | Qualtity Ordered | Sold Price | NP | SoldPrice-NP (This is a calculated Column) |
| 1-1-2022 | 123 | 01 | 789 | 3 | 10.80 | 12.81 | -2.01 |
| 2-2-2022 | 124 | 02 | 790 | 8 | 0.00 | 3.33 | -3.33 |
| 13-2-2022 | 125 | 10 | 789 | 6 | 4.66 | 12.81 | -8.15 |
| 14-2-2022 | 126 | 14 | 230 | 5 | 3.34 | 2.51 | 0.83 |
| 16-2-2022 | 130 | 25 | 486 | 1 | 2.40 | 1.06 | 1.34 |
| 18-2-2022 | 140 | 86 | 852 | 20 | 13.99 | 18.95 | -4.96 |
Now i have created a measure to calculate the number of different items that are sold below the NP price that looks like this
Count #sold cheaper NP = CALCULATE(COUNT(Data[SoldPrice-NP]), Data[SoldPrice-NP] < 0)
Solved! Go to Solution.
That was easier then I expected xD
I used the code below to achieve this
Count all article below 0 = CALCULATE(SUM(Data[Quantity Ordered]), Data[SoldPrice-NP] < 0)
That was easier then I expected xD
I used the code below to achieve this
Count all article below 0 = CALCULATE(SUM(Data[Quantity Ordered]), Data[SoldPrice-NP] < 0)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 10 | |
| 8 | |
| 6 | |
| 5 |