Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 8 | |
| 7 |