Forum Discussion
ssolovei
8 years agoFrequent Visitor
How to exclude rows from the calculation based on a row value in a table
Dear PowerBI experts! Could you please help me with the following question. I have two dimensions DimFund and DimStock and one fact table FactInvestmentAmounts. This fact table contains inves...
- 8 years ago
Assumming you have DimFund[FundName] on the rows, you can try this:
averageAmountInvestedExcludingCurrentFund= CALCULATE ( AVERAGE ( FactTAble[InvestmentAmount] ), EXCEPT ( ALL ( DimFund[FundName] ), VALUES ( DimFund[FundName] ) ) )
mattbrice
Solution Sage
8 years agoAssumming you have DimFund[FundName] on the rows, you can try this:
averageAmountInvestedExcludingCurrentFund=
CALCULATE (
AVERAGE ( FactTAble[InvestmentAmount] ),
EXCEPT ( ALL ( DimFund[FundName] ), VALUES ( DimFund[FundName] ) )
)
ssolovei
8 years agoFrequent Visitor
Thanks a lot it works!