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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
AlwaysBI
Frequent Visitor

Export Dynamic Data Labels to Excel

Dear support community,

 

Screenshot 2023-07-14 082515.png

The percentage shown in this chart is Dynamic Data Labels created by Power BI. When user export the data to Excel the percentage data doesn't export.  Is there anyway we can export it?

 

Thank you.

BiDev.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AlwaysBI ,

According to your description, you are actually using the field 'Target' with the aggregation(SUM) on the Y-axis. But you are using 100% stacked column chart, and you want to export the data with the percentage values as well. However this is not possible...

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

 

You can do what I did in the pbix file in my previous reply, change the visual type to stacked column chart and create a measure to get the percentage. Then put it on the Y axis to replace the original field (SUM('Table'[Target]))...

percentage = 
VAR _location =
    SELECTEDVALUE ( 'Table'[Location] )
VAR _sumtarget =
    CALCULATE (
        SUM ( 'Table'[Target] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Location] = _location )
    )
RETURN
    DIVIDE ( SUM ( 'Table'[Target] ), _sumtarget )

Best Regards

View solution in original post

3 REPLIES 3
AlwaysBI
Frequent Visitor

This is a sample of exported data we have.

AlwaysBI_0-1689585051800.png

Basically our data is the exact number instead of percentage, but in BI dashboard, we have the percentage as data labels, we wanted to get the data label percentage as well as the exact number exported if possible.

Anonymous
Not applicable

Hi @AlwaysBI ,

According to your description, you are actually using the field 'Target' with the aggregation(SUM) on the Y-axis. But you are using 100% stacked column chart, and you want to export the data with the percentage values as well. However this is not possible...

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

 

You can do what I did in the pbix file in my previous reply, change the visual type to stacked column chart and create a measure to get the percentage. Then put it on the Y axis to replace the original field (SUM('Table'[Target]))...

percentage = 
VAR _location =
    SELECTEDVALUE ( 'Table'[Location] )
VAR _sumtarget =
    CALCULATE (
        SUM ( 'Table'[Target] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Location] = _location )
    )
RETURN
    DIVIDE ( SUM ( 'Table'[Target] ), _sumtarget )

Best Regards

Anonymous
Not applicable

Hi @AlwaysBI ,

I created a sample pbix file(see the attachment), it can export the field with the percentage. How did you set your chart? Could you please provide some raw data in your tables(exclude sensitive data) with Text format and the Fields settings of your visual. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

vyiruanmsft_0-1689561463408.pngExport visual dataExport visual data

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.