Forum Discussion
setis
7 years agoPost Partisan
Help with a simple filter
Dear all, I need help with a filter. As you can see here below Apples can bee 3 types. I need to filter only one type but I still need the amount of the other fruits in the same column. The ...
- 7 years ago
whats up setis
I think what you have is probably not the best way to organize the data but you can try this as measure (eliminate the relationship or change the names, you now have Apple and Apples):
AmountFruits(Apples only Gala) 2 = IF ( SELECTEDVALUE ( Sheet1[Fruit] ) = "Apples"; CALCULATE ( SUM ( AmountType[Amount] ); AmountType[Type] = "Gala" ); [TotalAmount] )
AlB
7 years agoCommunity Champion
whats up setis
I think what you have is probably not the best way to organize the data but you can try this as measure (eliminate the relationship or change the names, you now have Apple and Apples):
AmountFruits(Apples only Gala) 2 =
IF (
SELECTEDVALUE ( Sheet1[Fruit] ) = "Apples";
CALCULATE ( SUM ( AmountType[Amount] ); AmountType[Type] = "Gala" );
[TotalAmount]
)