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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I just started with Power BI and did some basic courses to create measures and dashboard and I'm helping a friend now to create a dashboard. He's working in the concrete business and having budget prices on a different hierarchy. I just created this test file to explain the issue:
https://1drv.ms/u/s!Au2iuCVIX0mrgbE6BaK-Z4RX6H_ScA?e=YwBXNj
So these are the data tables I'm using (of course with a datetable):
So he sells items to his customer, but the budgetprices are on productgroup level. I've created the next measure to calculate the Budget Revenue:
Solved! Go to Solution.
Hi @Viper1451 ,
You need a date condition, add a filter in it.
Budget Revenue =
SUMX (
fOrder,
fOrder[QtyOrdered] * RELATED ( dProductTable[Weight in kg] )
* (
CALCULATE (
MAX ( fBudget[Budget Price per kg] ),
FILTER ( fBudget, YEAR ( fBudget[Date] ) = YEAR ( fOrder[OrderDate] ) )
)
)
)
Here is the result.
Hi @Viper1451 ,
You need a date condition, add a filter in it.
Budget Revenue =
SUMX (
fOrder,
fOrder[QtyOrdered] * RELATED ( dProductTable[Weight in kg] )
* (
CALCULATE (
MAX ( fBudget[Budget Price per kg] ),
FILTER ( fBudget, YEAR ( fBudget[Date] ) = YEAR ( fOrder[OrderDate] ) )
)
)
)
Here is the result.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |