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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PatrickBrom2702
New Member

Loop through table and use data from that table to create virtual tables

Hi all, 

I am in search for a solution for a challenge I have and I hope someone can help.

I am in a transition of rebuilding a big Qlikview report to power bi and the following is coming up.

In QV 140 subtables are merged into 1 big table. with a lot of variables, different column fills and multiple calculations and filters.

What is equal are the number of columns, and their headers, so they can be merged using the QV variant of union.

 

My challenge is to avoid rebuilding 140 tables, in order to merge them. Which I think is highly inefficient.

 

 For now I have a total table where almost all data which needs to be reported is in. but now comes the challenge:

 

  1. Next to that table I have a table with unique report nrs, various calculations and different column fills which can be different per report
  2. I want use the 2nd table to fill in the fields which can change from the total table
  3. I want to use virtual tables for this. 
  4. And as last, I want to loop through the 2nd table, so per unique nr a report is created, and append with the data in the virtual table.

I am sure this can be done, but my knowledge is not that far I can carry it out without help.

Can someone point me into the right direction which & how to use the appropriate measures, parameters, variables data & formula groups ,and so on?

4 REPLIES 4
PatrickBrom2702
New Member

Nope, unfortunaltelly not

lbendlin
Super User
Super User

What's the data source for these 140 subtables?

 

Byt the way, you are appending them, not merging them. 

1 The data source is a table, build in SQL, and merged in Power BI with multiple other tables.

2 you are right, will amend acordingly

Can you UNION these tables in SQL?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors