The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
As per the above table currently we've used a measure "Price" which gives the correct values at item level however it doesn't roll up(SUM) to give 0.28 value at manufacturer level.
Measure Used: Price = IF( SELECTEDVALUE('VAL/VOL'[VAL/VOL])="VAL TOTAL (USD)",CALCULATE(([MS Value] - [MS Value PY]),'VAL/VOL'[VAL/VOL]="Price (USD)")*CALCULATE([MS Value PY],'VAL/VOL'[VAL/VOL]="Vol Total"))
Price (USD) = VAL TOTAL (USD) / VOL TOTAL
Please suggest some solution to rollup Price values at manufacturer level.
Hi,
I am not sure how your datamodel looks like, but I assume Brand column is a subset of Manufacturer column.
Please try the below whether it suits your requirement.
New measure: =
SUMX ( DISTINCT ( 'TableName'[Brand] ), [Price] )
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |