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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mvhoffe
Frequent Visitor

Summarizecolumns multiple tables (for export to excel)

Hello,

 

I have a challenge that I've been puzzling with for a long time. I would like your advice on this.

I have a dataset containing a large number of tables that I also use for my visuals.

My employer would like to have an overview in Excel of all sales per relation, location, product once a month.

Something like this:

 

Schermafbeelding 2023-02-09 141925.png

My data model looks like this:

 

Schermafbeelding 2023-02-09 133441.png

 

So far nothing special.

Ideally, you create a visual/matrix for the table to be exported to excel and export it. Only because of the many lines and columns this is not possible and it gives an error.

Second solution would be to use a caculatetable in combination with summarizecolumns (CALCULATETABLE ( SUMMARIZECOLUMNS (........ ) only then I can only summarize from 1 table.

A third solution I tried was to merge all the tables and use them for a calculatetable.
The problem is that it then becomes very, very slow. As a result, refreshing data takes between 1 to 2 hours.
I'm talking about about 2 million invoice lines.

Thanks in advance for your help.

1 ACCEPTED SOLUTION
smpa01
Community Champion
Community Champion

The problem is how to merge the different fields from the 4 tables without big performance loss - make sure you have a datamodel that speaks to that business req, optimize dax measures and you should be good.

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

4 REPLIES 4
smpa01
Community Champion
Community Champion

4th option if you are on premium workspace and access to Power automate (default ENV will do, you don't need premium) , you can called DAX API by following this video from Ruth which will loop though all the lines and bypass 100k limit to generate the 2mil...

 

Once the flow runs you can pick up the pieces from the folder and sew them to a CSV (I hope I am right).  

@mahoneypat2

 

@mvhoffe  BTW excel has limitation of excel limitation of 1,048,576 rows by 16,384 columns, So you can't filt 2mil+ row in an excel.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

sorry @smpa01 .
This is a nice solution to export 1 table to csv/excel. That is not the problem (i can do this also with Dax studio ?). 

 

The problem is how to merge the different fields from the 4 tables without big performance loss. And then export this to excel/csv.

smpa01
Community Champion
Community Champion

The problem is how to merge the different fields from the 4 tables without big performance loss - make sure you have a datamodel that speaks to that business req, optimize dax measures and you should be good.

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

@smpa01 thanks for reply,

 

I am going to watch the video and try the solution.

I know that excel has a limitation of 1,048,076 rows, but because i am summarize by product (and client) i only because I stay far below the 1 million lines, fortunately I don't suffer from that.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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