Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello Everyone,
I have an interesting question about using visual calculations as percentages on a line chart in Power BI.
I prepared a sample data table that includes the period as year-quarter ("YYYY-QQ"), the name of the site, and the result.
In my use case, I would like to add constant lines for the bonus levels.
However, as you can see, the data labels aren't consistent. For the results, I am showing percentages, but for the bonus levels, I show decimal numbers.
I found that the FORMAT function can help me change the decimals to percentages in the visual calculation. I used the following formula:
FORMAT(<number>, "0%")
Unfortunately, I experienced that Power BI cannot place these formatted percentages on the line axis. Even though the visual calculation pop-up recognizes that the percentage isn't text (you can see that it aligns the numbers to the right while the text is aligned to the left), it cannot handle this on the visualization.
Do you know about this limitation in Power BI? Does it mean I cannot use visual calculations for this purpose?
Solved! Go to Solution.
Hi @v-nmadadi-msft,
The answer is that the visual calculation's numerical result (both decimal and whole numbers) can be formatted as a percentage, but this is done through the selected visual's format bar, not with a script or formula.
To do this:
It may seem more complicated in writing than it actually is to perform.
Thank you for your help.
I entered the data into the Power BI Desktop. This is just random generated data so there is no sensitive in it. This is the only table in my semantic model.
Year-QuarterSITE_NameResult
2023-Q1 | SITE_1 | 0.73 |
2023-Q2 | SITE_1 | 0.78 |
2023-Q3 | SITE_1 | 0.78 |
2023-Q4 | SITE_1 | 0.86 |
2024-Q1 | SITE_1 | 0.91 |
2024-Q2 | SITE_1 | 0.95 |
2024-Q3 | SITE_1 | 0.85 |
2024-Q4 | SITE_1 | 0.87 |
2025-Q1 | SITE_1 | 0.72 |
2023-Q1 | SITE_2 | 0.92 |
2023-Q2 | SITE_2 | 0.70 |
2023-Q3 | SITE_2 | 0.84 |
2023-Q4 | SITE_2 | 0.90 |
2024-Q1 | SITE_2 | 0.86 |
2024-Q2 | SITE_2 | 0.72 |
2024-Q3 | SITE_2 | 0.88 |
2024-Q4 | SITE_2 | 0.97 |
2025-Q1 | SITE_2 | 0.83 |
2023-Q1 | SITE_3 | 0.94 |
2023-Q2 | SITE_3 | 0.91 |
2023-Q3 | SITE_3 | 0.86 |
2023-Q4 | SITE_3 | 0.94 |
2024-Q1 | SITE_3 | 0.92 |
2024-Q2 | SITE_3 | 0.77 |
2024-Q3 | SITE_3 | 0.93 |
2024-Q4 | SITE_3 | 0.84 |
2025-Q1 | SITE_3 | 0.95 |
like this?
Yes, I had a similar use case in my initial post.
So, my question is: how can I represent these percentage values from the visual calculations in a graph (eg. on a line)?
Hi @abanar2 ,
Visual calculations currently have a limitation: you cannot set a dynamic format string on a visual calculation, nor can you use a visual calculation as the dynamic format string for a field or measure.
Reference for the above point: Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Hi @v-nmadadi-msft,
The answer is that the visual calculation's numerical result (both decimal and whole numbers) can be formatted as a percentage, but this is done through the selected visual's format bar, not with a script or formula.
To do this:
It may seem more complicated in writing than it actually is to perform.
Thank you for your help.
Hi @abanar2,
We really appreciate your efforts and for letting us know the update on the issue.
Please accept your reply as the solution so as to help other community members who may come across the same issue in the future.
Please continue using fabric community forum for your further assistance.
Thank you
Even though the visual calculation pop-up recognizes that the percentage isn't text
it is text, but it is right aligned text.
I see, thank you for the correction.
Do you have any idea how to show the visual calculation result as percentage?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.