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
amaiaita
Regular Visitor

Setting the Number Format Works For some cells and not others

When attempting to format numbers in a certain way on Power BI Report Builder (and the sample values come out as follows): 

amaiaita_0-1670946257141.png

 

If I then run the report the numbers don't format the way they should and have no formatting whatsoever:

amaiaita_1-1670946377991.png

 

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @amaiaita ,

 

There are a few possible steps you can try to troubleshoot the issue:

  • Check the data type of the field that you are trying to format. If the field is not a numeric data type, you may need to convert it to a numeric data type before you can apply number formatting.
  • Check the formatting settings for the field that you are trying to format. If the field has a custom formatting rule applied, you may need to modify or remove the rule in order to apply the desired formatting.
  • Check the formatting options for the visual that you are using to display the data. Depending on the type of visual you are using, you may need to enable or disable certain formatting options in order to apply the desired formatting.

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @amaiaita ,

 

There are a few possible steps you can try to troubleshoot the issue:

  • Check the data type of the field that you are trying to format. If the field is not a numeric data type, you may need to convert it to a numeric data type before you can apply number formatting.
  • Check the formatting settings for the field that you are trying to format. If the field has a custom formatting rule applied, you may need to modify or remove the rule in order to apply the desired formatting.
  • Check the formatting options for the visual that you are using to display the data. Depending on the type of visual you are using, you may need to enable or disable certain formatting options in order to apply the desired formatting.

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

The first of your suggestions worked. For whatever reason the output of the SQL query giving the data was outputting the values as strings rather than integers, so putting CInt() in front of the value of the cells that were causing issues worked! Thanks 🙂 

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.

Top Solution Authors