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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cajojohn
Frequent Visitor

Summarize Data with Custom Columns

Hello, 

 

I have a table in Power BI from which I need to export the data into a txt file. I am doing so using power automate.

 

I have been able to use summarizecolumns to appropriately extract the original table data. However, I am needing to add in some custom columns into the export.

 

I have found that summarizecolumns does not allow custom columns. Is there another way to add in custom columns to the data export?

 

I have included the Query that is currently pulling data below, without the custom column Projects[Value] and Projects[Level02Code] added. I need to add a custom column to this query. The flow continues to fail when these custom columns are added. 

 

Current Working Query

cajojohn_0-1689789494504.png

 

 

 

Thanks!

1 ACCEPTED SOLUTION
cajojohn
Frequent Visitor

I believe I found a solution, but would be interested to see if there is another way.

 

Instead of using a custom column in the exsisting Projects table, I created a custom table and added the new columns this way. This let me use summarizecolumns with all of the columns in the new table. 

cajojohn_0-1689797700911.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @cajojohn ,

 

You can add a calcualted column in Power BI Desktop using DAX or addd a custom column in Power Query using M language.

How to Add a Calculated Column in Microsoft Power BI | TechRepublic

Add a custom column (Power Query) - Microsoft Support

 

If you want to export data, please refer to

Export data from a Power BI visualization - Power BI | Microsoft Learn

3 Ways For Exporting Data From Power BI: A Complete Guide - Learn | Hevo (hevodata.com)

Exporting Data from Power BI Desktop to Excel and CSV – Part 1: Copy & Paste and DAX Studio Methods ...

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

cajojohn
Frequent Visitor

I believe I found a solution, but would be interested to see if there is another way.

 

Instead of using a custom column in the exsisting Projects table, I created a custom table and added the new columns this way. This let me use summarizecolumns with all of the columns in the new table. 

cajojohn_0-1689797700911.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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