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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
scottkg
Frequent Visitor

Paginated Report export to CSV prepends dataset table name to each column

I'm using a paginated report to export a flat csv file of a dataset table.

 

If I export the paginated table to excel- the column headers are as expected.

 

However, if I export the paginated table to csv, then the the dataset table name is pre-pended to each column name.

 

So if the field is "Total Sales" - in excel the column header is "Total Sales".

 

In the csv export, it is "dataset_table_name__Total_20_Sales".

 

The behavior is the same for a manual export directly from the report in pbi service - or when done via power automate (which is really what I'm trying to do).

 

Any suggestions?

9 REPLIES 9
emeric
New Member

The header are correctly rendered in export in Excel, but in CSV, ReportBuilder renders instead the name of the TextZone.

To modify it, use report builder in design mode, click inside the TextZone of your table, look at the property pane and update the "Name"

Unfortunately this doesn't work. You cannot enter spaces or special characters in the Name proerty. 

Mike250Amused_0-1695353058561.png

 

AlLangstaff
Frequent Visitor

I've been trying to solve the same problem, I've not found a way round it specifically to display the column titles exactly as you want, but you can rename the cells in the table and call them whatever you want, just right click on the box with the actual repeating data cell and in properties call it want you want. Only Limitation is you can't have spaces.

I'll probably just resort to exporting as excel - let the downstream users use that instead of a csv.  I'm automating the process with a daily export, so need to keep it simple.

Other Option, which I've done in a couple of cases where I needed change the headers to was to use PowerAutomate to run the report, Parse the JSON and rebuild the CSV with the correct headers in PowerAutomate. Or just replace the headers. There's probably about 5 different ways to achieve it in a flow.

lbendlin
Super User
Super User

I'm using a paginated report to export a flat csv file of a dataset table.

That sounds overly complex. Have you considered running your DAX query in Power Automate, PowerShell, or any other automation tool ?

Well- the simple scenario of manually exporting a paginated report to csv isn't complex- and I'm asking why it prepends the dataset name to each column (and how to avoid it).

@scottkg Hi, I have the exact same issue been driving me wild trying to find unsuccessful workarounds. Did you ever find a resolution?

Hi, I have the exact same issue been driving me wild trying to find unsuccessful workarounds. Did you ever find a resolution?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors