Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BaldAccountant
Helper III
Helper III

SUMX Help with Price part of Price Volume Mix analysis

I hope this is a fairly easy request.   It is not very practical to attach a file because all the info I deal with is Protected Health Information.

I am trying to put together a PVM analysis in Power BI to analyse reimbursement.

The price would in effect be reimbursement per case.

Here is my formula for the price impact:

Price Impact =(sumx(values(data[financial class]),[current YTD cases]*[current ytd vs prior ytd reimbursement per case])

or you could think of it as :

SUMX(values(data[product line]),[current YTD volumes]*[change in price])

Financial class is the type of insurance payor - commercial, Medicare, Medicaid, self pay.

The formula calculates the price difference correctly as intended, but it does not display the calculation for each financial class.  I have slicers for year and month and the data is all YTD for the current year and prior year.   

It looks like it is not calculating for any financial class that does not have any cases in the current period.

If I try the formula without sumx it calculates correctly, but the total is not right.

Hopefully I am just making a simple mistake and you guys can help me.

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BaldAccountant ,

 

Please try to create a new table.

vxiaocliumsft_0-1730879235788.png

And add a new relationship.

vxiaocliumsft_1-1730879312430.png

vxiaocliumsft_3-1730879571321.png

 

vxiaocliumsft_2-1730879337993.png

Price impact 2 = sumx(values('Table'[Sub-Category]),[CYTD units]*[Delta CY vs PY sales per Unit])
 
Best Regards,
Wearsky

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @BaldAccountant ,

 

Please try to create a new table.

vxiaocliumsft_0-1730879235788.png

And add a new relationship.

vxiaocliumsft_1-1730879312430.png

vxiaocliumsft_3-1730879571321.png

 

vxiaocliumsft_2-1730879337993.png

Price impact 2 = sumx(values('Table'[Sub-Category]),[CYTD units]*[Delta CY vs PY sales per Unit])
 
Best Regards,
Wearsky
BaldAccountant
Helper III
Helper III

https://www.dropbox.com/scl/fi/mx31rxyco1jiufytv8gvs/Test-PWM.pbix?rlkey=xwre0yprauvhw0rvckzlyqiiq&s...

Here is a link to a PBIX with pretend data.   Notice that the price impact for copiers is missing.   It should be $495.33

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.