Forum Discussion
SumProduct with Power BI
- Anonymous3 years ago
Hi Sandeep_PowerBI ,
In Power BI, you need to use unpivot and pivot for your data first, and then you can perform calculations.
After transformation, the data is as follows.
Create this measure:
Measure = VAR _table = SUMMARIZE ( 'Table', [Line], [ABC], [HMP], "Product", SUM ( 'Table'[ABC] ) * SUM ( 'Table'[HMP] ) ) RETURN DIVIDE ( SUMX ( _table, [Product] ), SUMX ( FILTER ( ALL ( 'Table' ), [Line] = MAX ( 'Table'[Line] ) ), [HMP] ) )Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Anonymous its working...
By,
Sandeep
Hi Sandeep_PowerBI as I wrote, I organize your excel data into different structure /unpivoting and basically rename your Actual to Weight to follow calculation logic.
In red below you can find example your and mine data.