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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
acollins1984
New Member

Data Type for Data Label Changes Once Dashboard Published to Server

I ran into issue that appears to have just popped up overnight where I have a data label that has a percent value on Power BI desktop but shows a whole number when the dashboard is published to the server. I've tried publishing the dashboard but the issue persists. I haven't tried deleting and republishing as the data model is being used by other groups so I wouldn't be able to track any downstream impacts. Is anyone able to provide insight on how to resolve this? 

 

 

acollins1984_0-1749135148030.pngacollins1984_1-1749135207684.png

 

2 ACCEPTED SOLUTIONS
collinq
Super User
Super User

HI @acollins1984 ,

 

Depending upon whom you ask, this is either a "feature" or a "bug" that happens now and then.  To make sure that
the Service and the Desktop match, make sure it is formatted correctly.  In Desktop, select the column, then , in the ribbon make sure that the format is set to Percentage and not to a number or decimal.  AND, make sure that the number of space you want for the Percentage is set.

 

If it is a measure or DAX column, make sure that you have the formatting in the statement set to the percentage (somethign like "0,00%").

Or, you could even look at the Data Label in the Format Pane and make sure the value is set to percentage as well.

Then, republish and take a look.





Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

v-agajavelly
Community Support
Community Support

Hi @acollins1984 

Thanks for reaching out for Microsoft Fabric community.

Power BI sometimes loses formatting on visuals  especially card visuals  when the data type is not explicitly set as a percentage. The measure returns a decimal (like 0.66) but formatting is applied only in the visual (not in the DAX) or if locale/regional settings in Power BI Service differ from your Desktop.

Format in the DAX measure itself, instead of relying only on the visual to show percentages, hardcode the formatting inside your DAX measure.

If your original measure is like - Percent Complete = DIVIDE([Completed], [Total])
Update it to - Percent Complete Formatted = FORMAT(DIVIDE([Completed], [Total]), "0%")

Then use Percent Complete Formatted in your card.Once cross Check that the Data Type is set to Text, not Decimal

Since you're now using FORMAT, this becomes a text, so, Go to Model view → Select the new measure, make sure it says Data type = Text

This ensures Power BI doesn't reformat the result.

Clear the visual formatting, sometimes the card visual holds on to old settings, try to delete and re-add the card visual (if possible), or reset the Data label display units to "None" and Turn off “Value Decimal Places” to avoid auto-rounding.

Publish Again and Verify

After you've implemented the formatted DAX and verified on Desktop and Save the .pbix and publish. Then Check in Power BI Service to confirm the formatting is now respected.

Still needs any debug, If you want to avoid using FORMAT() (e.g., to keep sorting or tooltips functional), another route is once ensure the Data type of the measure is set to Decimal Number and then in the Model view, explicitly set the Format as Percentage, and apply 2 decimal places.

This avoids text conversion but relies more on visual settings being respected.

If the above information helps you, please give us a Kudos and marked the Accept as a solution.

 

Best Regards,
Community Support Team.

View solution in original post

5 REPLIES 5
v-agajavelly
Community Support
Community Support

Hi @acollins1984 

Just checking in one last time. Were you able to try out any of the suggestions shared earlier? If your issue is resolved, marking the accepted solution would be a big help to others who might be facing the same scenario.

If you went in a different direction or still need support, feel free to drop a quick update, we’re happy to keep helping.

Regards,
Akhil.

v-agajavelly
Community Support
Community Support

Hi @acollins1984 

Just checking in to see if the solution we shared helped resolve your issue with the card visual formatting in Power BI.

To recap, we discussed formatting the measure directly using FORMAT() or ensuring the data type and format settings are correctly applied, both in DAX and the model, along with a few cleanup steps in the visual itself.

If you had a chance to try this out, could you please confirm if it worked for you?
If the issue’s resolved, feel free to mark it as the accepted solution, it helps others in the community who might be facing the same challenge.

And if you're still running into trouble, just let us know, we’re here to help!

Thanks again for being part of the Microsoft Fabric Community.

Best regards,
Akhil

v-agajavelly
Community Support
Community Support

Hi @acollins1984 

Thanks for reaching out for Microsoft Fabric community.

Power BI sometimes loses formatting on visuals  especially card visuals  when the data type is not explicitly set as a percentage. The measure returns a decimal (like 0.66) but formatting is applied only in the visual (not in the DAX) or if locale/regional settings in Power BI Service differ from your Desktop.

Format in the DAX measure itself, instead of relying only on the visual to show percentages, hardcode the formatting inside your DAX measure.

If your original measure is like - Percent Complete = DIVIDE([Completed], [Total])
Update it to - Percent Complete Formatted = FORMAT(DIVIDE([Completed], [Total]), "0%")

Then use Percent Complete Formatted in your card.Once cross Check that the Data Type is set to Text, not Decimal

Since you're now using FORMAT, this becomes a text, so, Go to Model view → Select the new measure, make sure it says Data type = Text

This ensures Power BI doesn't reformat the result.

Clear the visual formatting, sometimes the card visual holds on to old settings, try to delete and re-add the card visual (if possible), or reset the Data label display units to "None" and Turn off “Value Decimal Places” to avoid auto-rounding.

Publish Again and Verify

After you've implemented the formatted DAX and verified on Desktop and Save the .pbix and publish. Then Check in Power BI Service to confirm the formatting is now respected.

Still needs any debug, If you want to avoid using FORMAT() (e.g., to keep sorting or tooltips functional), another route is once ensure the Data type of the measure is set to Decimal Number and then in the Model view, explicitly set the Format as Percentage, and apply 2 decimal places.

This avoids text conversion but relies more on visual settings being respected.

If the above information helps you, please give us a Kudos and marked the Accept as a solution.

 

Best Regards,
Community Support Team.

Hi @acollins1984 

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

Regards,
Akhil.

collinq
Super User
Super User

HI @acollins1984 ,

 

Depending upon whom you ask, this is either a "feature" or a "bug" that happens now and then.  To make sure that
the Service and the Desktop match, make sure it is formatted correctly.  In Desktop, select the column, then , in the ribbon make sure that the format is set to Percentage and not to a number or decimal.  AND, make sure that the number of space you want for the Percentage is set.

 

If it is a measure or DAX column, make sure that you have the formatting in the statement set to the percentage (somethign like "0,00%").

Or, you could even look at the Data Label in the Format Pane and make sure the value is set to percentage as well.

Then, republish and take a look.





Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.