Forum Discussion
VAR Table in RETURN statement
- Anonymous3 years ago
Hi Medmbchr ,
Please try below steps:
1. below is my test table
Table:
2. create measure with below dax formula
Measure = VAR tmp = FILTER ( ALL ( 'Table' ), [Column2] < 50 ) RETURN SUMX ( tmp, [Column2] )3. add a card visual with above measure
Pleae refer attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- AnonymousNot applicable
Hi Medmbchr ,
Please try below steps:
1. below is my test table
Table:
2. create measure with below dax formula
Measure = VAR tmp = FILTER ( ALL ( 'Table' ), [Column2] < 50 ) RETURN SUMX ( tmp, [Column2] )3. add a card visual with above measure
Pleae refer attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - Greg_DecklerCommunity Champion
Medmbchr Use SUMX
- MedmbchrHelper IV
I am trying to use SUMX and STDEVX.P but nothing