Forum Discussion
tgo
8 years agoFrequent Visitor
If condition in two tables
Hi everybody, I'm tryin to filter the whole chain of my datas in my network navigation visual. My data look like: ID from ID to Project 1 Product1 Project 1 Product 2 Product 1 ...
- 8 years ago
Hi tgo,
What does the second table look like? If you'd like to filter the IDs, I would suggest you do it like below.
1. Create a new table.
New Table = DISTINCT ( UNION ( VALUES ( 'table 1'[ID from] ), VALUES ( 'table 1'[ID to] ) ) )2. Create a measure.
Measure = IF ( MIN ( 'table 1'[ID from] ) = SELECTEDVALUE ( 'New Table'[ID from] ) || MIN ( 'table 1'[ID to] ) = SELECTEDVALUE ( 'New Table'[ID from] ), 1, BLANK () )Finally, you can select one time to filter the two columns.
Best Regards,
Dale
v-jiascu-msft
Microsoft Employee
8 years ago