Forum Discussion
Need help in correcting Inverse Sum calculations
- 6 years ago
Hey Anonymous ,
this measure is probably providing what you are looking for:
Measure = var _theotherplatforms = EXCEPT( CALCULATETABLE( VALUES('Query1'[Platform]) , ALL(Query1[Scenarion Name]) , ALL(Query1[Platform]) ) , CALCULATETABLE( VALUES('Query1'[Platform]) , ALL(Query1[Platform]) ) ) return SUMX( ADDCOLUMNS( _theotherplatforms , "v" , var _p = [Platform] return CALCULATE(SUM('Query1'[Historical Cases]), ALL(Query1[Scenarion Name]) , 'Query1'[Platform] = _p) ) , [v] )At least the table visual looks similar:
Regards,
Tom
P.S.: If this does not tackle your challenge, create a pbix that contains sample data, the filters etc, and explain in great detail why you expect the result. Upload the pbix to onedrive or dropbox and share the link. If you use an xlsx to create the sample data upload the xlsx as well. Personally i will just download sample files from onedrive or dropbox.
Anonymous , There is no slicer on platform, are you filtering ?
amitchandak I am not directly filtering platform values using slicer.
I jus showed in table visual what are the platforms getting filtered based on the period and scenario slicers values..
- Anonymous6 years agoNot applicable
- AntrikshSharma6 years agoCommunity ChampionI am sorry for being rude but I have read your whole post multiple times but I am still unable to figure out what you want to achieve, it will be good if you create instruction inside your power BI file and mention and point out exactly what numbers should appear when and where.
- TomMartens6 years agoSuper User
Hey Anonymous ,
this measure is probably providing what you are looking for:
Measure = var _theotherplatforms = EXCEPT( CALCULATETABLE( VALUES('Query1'[Platform]) , ALL(Query1[Scenarion Name]) , ALL(Query1[Platform]) ) , CALCULATETABLE( VALUES('Query1'[Platform]) , ALL(Query1[Platform]) ) ) return SUMX( ADDCOLUMNS( _theotherplatforms , "v" , var _p = [Platform] return CALCULATE(SUM('Query1'[Historical Cases]), ALL(Query1[Scenarion Name]) , 'Query1'[Platform] = _p) ) , [v] )At least the table visual looks similar:
Regards,
Tom
P.S.: If this does not tackle your challenge, create a pbix that contains sample data, the filters etc, and explain in great detail why you expect the result. Upload the pbix to onedrive or dropbox and share the link. If you use an xlsx to create the sample data upload the xlsx as well. Personally i will just download sample files from onedrive or dropbox.