Forum Discussion
Anonymous
6 years agoNot applicable
DAX Help
Expired = CALCULATE(COUNT('Card Type'[CardType]) ,FILTER('Card Type' , IF([End Date] > 'Card Type'[GracePeriodEndDate] ,1,0)))
I want 0 for rows that are not satisfying the filter condition.
I want 0 for rows that are not satisfying the filter condition.
What else i can use instead of "FILTER" to get the result.
- Anonymous
I think:
Expired =
VAR __Expired = CALCULATE(COUNT('Card Type'[CardType]) ,FILTER('Card Type' , IF([End Date] > 'Card Type'[GracePeriodEndDate] ,1,0)))
RETURN IF(ISBLANK(__Expired),0,__Expired)
4 Replies
- AnonymousNot applicable
- Greg_DecklerCommunity ChampionAnonymous
I think:
Expired =
VAR __Expired = CALCULATE(COUNT('Card Type'[CardType]) ,FILTER('Card Type' , IF([End Date] > 'Card Type'[GracePeriodEndDate] ,1,0)))
RETURN IF(ISBLANK(__Expired),0,__Expired)- AnonymousNot applicable
Greg_Deckler Thankyou so much.!
- Greg_DecklerCommunity ChampionYou're welcome! 🙂