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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

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

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.

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yiruan-msft
Community Support
Community Support

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.