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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
hjameelq
Advocate IV
Advocate IV

Data Preparation on Power BI Desktop

I do have a huge dataset that has aggregated data that has to be disaggreated to be able to present it on different types of charts. The issue with that I got that I need to create a table for each question to be able to unpivot the columns so I has to unpviot the columns on the original table, it will destort the data strcuture. Therefore, is there a quick solution to this issue, or if I created a table for each question, will this effect the perfromance of loading reports or publishing the data. One more concern is the amount of tables that  I might create for each question as we do have about 500 columns. Is there a recommended way to handle this huge amount of data?

 

Thanks, -H

8 REPLIES 8
v-sihou-msft
Microsoft Employee
Microsoft Employee

@hjameelq

 

In this scenario, since you have too many columns for each row in your dataset, I suggest you use ETL tools like SSIS to umpivot the source table, then import the destination table into Power BI. See: How To Use the Unpivot Transform in SSIS.

 

Another option is separating the dataset into multiple datasets, each one may contains 50 columns. Then unpivot each dataset and use "append query" in Quert Editor to combine the datasets together.

 

Also please refer to: Data Import Best Practices in Power BI

 

Regards,

Thanks both for replying to my question, that is appreciated. 

 

I wanted to ask few things about the limitations of using large dataset in power BI, so if it is that limited, I have a dataset with 500 columns, will it be okay according to your expereince to separate these columns into different datasets but not using power BI, but by using the excel and then I can add it as a source to my dashboard. Yes our data is a bit huge, and we tried many BI tools, and we founf power BI good as it serves our requirements. But the only concern now and that might get in our way to carry on using power and looking for another platform is the dataset size limitation.

 

 

 

I understand you have survey data, presented in rows (UserId, Question, Response) and you want to be able to answer questions like "how many customers answered A to question 1 and answered B to to question  2?"

 

Creating new columns is the way to go, if you want to use an un arbitrary number of filters.

 

Alternatively, Marco Russo and Alberto Ferrari have proposed a pattern that only allows the user to apply a predefined number of filters:

http://www.daxpatterns.com/survey/

 

This drawback comes with the advantage that no unpivoting is required, resulting in less memory being required (due to fewer columns being present in the data model).

 

See if it works for you.

How does this turn into 500 columns?

Well for me it worked perfectly, what I did is I splitted the data sets into separate sheets and it worked without any huge slowness, I thought it is not gonna work but apparently, it did 🙂

@hjameelq

 

In Power BI, we have the 1 GB limitation per dataset. So if your dataset will exceed this size, please separate into multiple datasets.

 

Regards,

1gb AFTER compression.

Another option might be using Direct Query, if your source data is a supported option. Then you can pull in only the data you actually use instead of importing the whole data set
dkay84_PowerBI
Microsoft Employee
Microsoft Employee

The compression engine in Power BI doesn't like wide data as much as it likes long data, so you may see some memory issues with a 500 column table. Other things such as cardinality will also have an impact.

If I understand your question, I would use a reference query to your source query and remove all unnecessary columns for each table you need to make. Then do the unpivot on those new tables.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors