Forum Discussion
Dax Measure
- 6 years ago
Hi BigBadBob
Create a calculated column that will say whether the row is to be shown:
ShowLine = VAR res_ = CALCULATE(SUM(Table1[Flag]);ALLEXCEPT(Table1;Table1[ID])) RETURN IF ( res_ > 0; "YES"; "NO")Then place all the fields you want to show in a Table visual and filter for ShowLine = "YES"
It can also be done with a measure for the filtering, instead of a calculated column
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
- Anonymous6 years ago
Hi BigBadBob ,
Please share sample data for both the tables and the relationship between them.
Regards,
Harsh Nathani
Hi BigBadBob
Create a calculated column that will say whether the row is to be shown:
ShowLine =
VAR res_ = CALCULATE(SUM(Table1[Flag]);ALLEXCEPT(Table1;Table1[ID]))
RETURN
IF ( res_ > 0; "YES"; "NO")
Then place all the fields you want to show in a Table visual and filter for ShowLine = "YES"
It can also be done with a measure for the filtering, instead of a calculated column
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
- BigBadBob6 years ago
Helper I
Hi - Massive thanks. The flag number is in another table. I tried using the below as a measure and it has not filtered it correctly. Sorry for not mentioning the second table in the original post
Includes Cancelled =Var res_=CALCULATE(SUM(Policy[flag Number]),ALLEXCEPT(Transactions,Transactions[User ID]))RETURNIF(res_>=1,"Y","N")- Anonymous6 years agoNot applicable
Hi BigBadBob ,
Please share sample data for both the tables and the relationship between them.
Regards,
Harsh Nathani
- BigBadBob6 years ago
Helper I
Hi,
I constructed a basic model using the criteria we discussed on two tables and it worked. I cant see why it does not work in my first model but i am unable to share it. Thanks in advance and Kudos coming your way 😉