Forum Discussion
Filter Measure from Two Tables
Hi MStP
Can you provide some sample data to help explain the expected outcome more clearly? Is there any relationship between two tables?
If you display data from Table B in a table visual, you can simply put PO Account Assignment column from Table B into the filter pane of this visual and set it to show items when value is 'K' or 'P' with Basic filtering type.
If the selected values from Table A are decided by other visuals based on user's interaction, you can create a measure like below to play as a visual-level filter field. Set it to show items when the value is 1. To use this measure, [PR Account Assignment] column should be displayed in the visual.
flag =
VAR __selectedValues = VALUES ( 'Table A'[PR Account Assignment] )
RETURN
IF (
SELECTEDVALUE ( 'Table B'[PO Account Assignment] ) IN __selectedValues,
1,
0
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hello v-jingzhang
Please see the link for the sample data file below.
I want to create a measure that acts as a visual level filter to include the following rows:
PO Cat = K or P
PO Cat = Blank, and PR Cat is K or P
In the sample data, the desired result is that the filter excludes PO1003.
https://drive.google.com/file/d/1XOp8YVIYCD71NXyVb3Oe_2lRT7FXUWgl/view?usp=sharing
Please let me know if you need additional information.
Michael