Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello,
I am seeking for help as i've been trying a couple days to solve this DAX calculation and I just can't figure it out.
I have a Table with orders, categories (SAL_TEMP) unit prices and number of units.
I have created a calculated column with ranges of prices.
Now, i want to calculate the aggregate of each order without considering the dimension"SAL_TEMP" and the calculated colum "BKT Price" but only from the "Contracts" appearing in first instance.
The result should be like this:
The Table1 down below shows how many orders have each category. I'm interested in the "Total" as i want to know for each "BKT Price" how many units there are but only from the "Contracts" appearing on every row.
The Table2 shows how many units have each order.
If i do something like:
I can't attach the Pbix, but there's the table:
Order | SAL_TEMP | BKT Price | Price | Units | Family |
90002842271 | SALDO | 2 - 2.99 | 2,43 | 1 | 185 |
90002842271 | SALDO | 3 - 3.99 | 3,24 | 1 | 173 |
90002842271 | SALDO | 3 - 3.99 | 3,24 | 1 | 177 |
90002842271 | TEMPORADA | 4 - 4.99 | 4,87 | 1 | 316 |
90002856331 | SALDO | 4 - 4.99 | 4,12 | 1 | 676 |
90002856331 | TEMPORADA | 4 - 4.99 | 4,95 | 1 | 942 |
90002842271 | TEMPORADA | 5 - 5.99 | 5,68 | 1 | 268 |
90002842271 | SALDO | 6 - 9.99 | 6,5 | 1 | 188 |
90002842271 | TEMPORADA | 6 - 9.99 | 8,12 | 1 | 133 |
If someone can give me a hand I would be incredibly grateful.
Best regards,
Solved! Go to Solution.
Solved! 💪 I was basically not being aware of the filter context.
Just in case someone is in my pants, the solution is:
And this returns:
Solved! 💪 I was basically not being aware of the filter context.
Just in case someone is in my pants, the solution is:
And this returns:
So far, i have accomplished this. Still not being correct though... @amitchandak thank you!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
11 | |
11 | |
8 | |
8 | |
8 |