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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
ide
Regular Visitor

Optimization of getting intersection between values in same table

Hi guys,

 

I'm stuck with optimization my dashboard. Let's say that i have this piece of data:

 

idvalues
1a
1b
1b
2a
2b
2c
2c
3a
3b
3c
3d
3e
4b
4c
4c
4c
4e
4e
4d

 

What i want to achive is intersection between values in column "values" and it should be % of distinct count. The accurate and readable visualisation would be a matrix, so i'll get the following:

 

id1234
1100%67%40%25%
267%100%60%50%
340%60%100%80%
425%50%80%100%

 

I already solve this task by creating new table with same data, make relationship between both, make matrix with rows from table1[id], column from table2[id] and distinct count %of row total (not measure) from table2[values]. 

 

This working fine with small dataset, but now i want to put a 800mb dataset, so of course it's a large amount of data and result can only be displayed if i filtered out few values from both tables [id]. Probably there is more accurate way to get the same. 

 

Thanks.

2 REPLIES 2
lbendlin
Super User
Super User

Apart from deduplication and calculating only the "top" triangle there is not much you can do. It will be a cartesian product, and with large numbers of values that cartesian will be huge.

 

What are you planning to do with the result?

Business want to see intersection choosing differents IDs to make any decisions...

 

I got about deduplication, seems it can reduce amount of rows. But this dataset is only for 1 month period. I assume they will ask me to do the same with 3 month period 🙂

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.