Forum Discussion
Filter's Data between two table Help
- 5 years ago
Hi POWER_MI ,
You can put the version column in the matrix and apply this measure to replace the previous:
A = SWITCH ( SELECTEDVALUE ( Project[Project] ), "mother1", IF ( CALCULATE ( COUNTROWS ( FILTER ( 'Project', CONTAINSSTRING ( SELECTEDVALUE ( COLOR_FIELD_TO_ADD[Soon_Projet] ), 'Project'[Project] ) ) ), FILTER ( 'COLOR_FIELD_TO_ADD', 'COLOR_FIELD_TO_ADD'[Version] = "Version A" ) ) > 0, 1 ), "mother2", IF ( CALCULATE ( COUNTROWS ( FILTER ( 'Project', CONTAINSSTRING ( SELECTEDVALUE ( COLOR_FIELD_TO_ADD[Soon_Projet] ), 'Project'[Project] ) ) ), FILTER ( 'COLOR_FIELD_TO_ADD', 'COLOR_FIELD_TO_ADD'[Version] = "Version B" ) ) > 0, 1 ), "mother3", IF ( CALCULATE ( COUNTROWS ( FILTER ( 'Project', CONTAINSSTRING ( SELECTEDVALUE ( COLOR_FIELD_TO_ADD[Soon_Projet] ), 'Project'[Project] ) ) ), FILTER ( 'COLOR_FIELD_TO_ADD', 'COLOR_FIELD_TO_ADD'[Version] = "Version C" ) ) > 0, 1 ) )Attached the file in the below, hopes to help you.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi POWER_MI ,
Based on your description, you can create this measure, put it in the table visual filter and set its value as 1:
control =
IF (
COUNTROWS (
FILTER (
'Tableau1',
CONTAINSSTRINGEXACT (
SELECTEDVALUE ( Tableau2[Son Project] ),
'Tableau1'[MOTHER PROJECT ]
)
)
) > 0,
1,
0
)
Note: Table visuals will not show the repeated rows.
Attached a sample file in the below, hopes to help you.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- POWER_MI5 years agoPost Patron
Hi all,
v-yingjl Thanks a lot for answer. In exercise it's working fine but when i added all calculation of project it's doe not work.
Is it possible to propose solution with Join relation between two table.
Because this is first example but on Tableau 2 table will add other coloumn Home/Color/ID so if with join it's simple to add,
so is it possible to update project with Join relation?
thanks