Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
VoltesDev
Helper IV
Helper IV

Intersect 2 unrelated table for listing only

Hi guys,

 

How to display a list of rows by comparing a same cattegory (value) but wihout any calculation in it ? 

Example, I have data like this :

VoltesDev_0-1654299657757.png

And I have table Product :

VoltesDev_1-1654299909558.png

 

So I want the table list only display the matched Business Profile. This two table are unrelated, but I want to compare between that Business Profile. Another thing is can we not create new table, so just in that display (table visual) only.

 

Thanks,

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @VoltesDev ,

 

Please create the measure and use it as a visual-level filter.

 

Measure = 
COUNTROWS (
    INTERSECT (
        VALUES ( 'Product'[Business Profile] ),
        VALUES ( Data[Business Profile] )
    )
)

vkkfmsft_0-1654681415485.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @VoltesDev ,

 

Please create the measure and use it as a visual-level filter.

 

Measure = 
COUNTROWS (
    INTERSECT (
        VALUES ( 'Product'[Business Profile] ),
        VALUES ( Data[Business Profile] )
    )
)

vkkfmsft_0-1654681415485.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@VoltesDev , you can  create a measure and use that in the filter or can use it as visual level filter and check for not blank

 

countrows(filter(Table2, Table2[Business Profile] in allselected(Table1[Business Profile]) )

 

You can also use treatas

https://docs.microsoft.com/en-us/dax/treatas-function

 

Hi @amitchandak 

 

May I know why in my measure when I test, the ALLSELECTED is not working ?

 

My display is like this : 

VoltesDev_0-1654334933093.png

This is on the report page, and it is filtered by other table related to it.

 

I tried to test the ALLSELECTED with a new table in Data section, but all rows come out ->

VoltesDev_1-1654335016499.png

Is the filtered lost in Data Section ?

 

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.