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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Solved! Go to Solution.
Hi @dwhittaker1
I simply restored your data, all but "Price Impact - Sales - CY vs PY $" are the source data.
I created a measure as follows.
Price Impact - Sales - CY vs PY $ =
IF(
MAX([Price per Unit -PY $]) = BLANK(),
BLANK(),
SUMX(
FILTER(
FactSalesInvoiceLine,
[Price per Unit -PY $] > 0
),
[Unit Quantity - CY] * [Price per Unit - CY vs PY $]
)
)
Result:
If this is not your desired outcome, please show your desired outcome in excel form.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dwhittaker1
[Price per Unit - PY $] is a measure?
If so, please try removing MAX. I don't have your source data, so in my test the field is column need to use MAX.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
thanks for the response, I get a message that says The MAX function only accepts a column reference as the argument number 1
Hi @dwhittaker1
[Price per Unit - PY $] is a measure?
If so, please try removing MAX. I don't have your source data, so in my test the field is column need to use MAX.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Share the download link of the PBI file.
Hi @dwhittaker1
I simply restored your data, all but "Price Impact - Sales - CY vs PY $" are the source data.
I created a measure as follows.
Price Impact - Sales - CY vs PY $ =
IF(
MAX([Price per Unit -PY $]) = BLANK(),
BLANK(),
SUMX(
FILTER(
FactSalesInvoiceLine,
[Price per Unit -PY $] > 0
),
[Unit Quantity - CY] * [Price per Unit - CY vs PY $]
)
)
Result:
If this is not your desired outcome, please show your desired outcome in excel form.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 50 | |
| 45 |