Forum Discussion
Subtotal in Matrix Question
- Anonymous1 year ago
Hi dream36876 ,
You can try thisEnding_Cost = VAR _t = SUMMARIZE( 'Table', 'Table'[Cost per Unit], 'Table'[Inventory], "Sum", SELECTEDVALUE('Table'[Cost per Unit])*SELECTEDVALUE('Table'[Inventory]) ) RETURN SUMX(_t,[Sum])Fainal output
Best regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hello dream36876
Please try with the below formula..if doesnt work please share us the sample dataset to check further.
Measure = Sumx(Values(GdsNa), AVERAGE('Ending Per unit'[Cost per Unit]) * SUM('Ending Inventory'[Inventory]))
If you find this helpful , please mark it as solution and Your Kudos are much appreciated!
Thank You
Dharmendar S
Hello, Thanks for reply
But it still doesn't work what i want
I can't share file here,how about sample data?
- Anonymous1 year agoNot applicable
Hi dream36876 ,
You can try thisEnding_Cost = VAR _t = SUMMARIZE( 'Table', 'Table'[Cost per Unit], 'Table'[Inventory], "Sum", SELECTEDVALUE('Table'[Cost per Unit])*SELECTEDVALUE('Table'[Inventory]) ) RETURN SUMX(_t,[Sum])Fainal output
Best regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly