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
SteffenG
Regular Visitor

Use value from slicer to reference another table and a specific column in that table

Hi everyone,

apologies if this following question had been asked but I couldn't find anything in the forums. 

 

I have a large amount of data with thousands of tables in a sql db, each of them with 80,000 rows and hundreds of columns. Each of those tables has the same rows so if you would put it all together, you would basically have one matrix with 80,000 rows and 100,000 columns or so.  

 

My question is how I can use slicers etc. to pick specific rows and columns across all those tables and then visualize the values from those fields?

 

The row part is easy since I have a good logic already to easily filter down to the desired rows. The column part would be easy as well if I would have all those 100,000 columns in a single matrix since I have a good logic to filter down all those columns and pick the exact ones I want. I could just unpivot the columns and search through them that way. HOWEVER, it's probably a terrible idea to build a matrix with 100,000 columns and to unpivot everything 😉 since the dataset would become way to large. So, I need a way to search across tables and tell Power BI which table(s) to pull from and which column(s) within those tables. 

 

The first screenshot below shows the simplified logic of my thousands of tables. And the second screenshot shows how far I've taken this simplified model in PBI. Happy to attach the PBIX as well but can't figure out how. Any suggestion would be highly appreciated!!

 

Thanks in advance

 

Steffen

 

 

Simplified file structureSimplified file structureSimplified PBI modelSimplified PBI model

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@SteffenG,

 

As far as I know, there might be no elegant way than Unpivot Columns.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, Sam. Appreciate your help.

 

If anybody else can think of another solution, please feel free to comment.

 

Steffen

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.