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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Zoe_Guest
Frequent Visitor

Dynamic Formatting Percentage shows value as 100 times larger e.g. 0.021 -> 212%

I am trying to show values as a percentage using dynamic formating but the values are not showing correctly. They are 100 times larger in some cases.

 

I have a column "kpi_value_mean".

Measure = SUM(cfd_kpi_gold_trends[kpi_value_mean])

Dynamic Format = 

VAR kpi_result = SELECTEDMEASURE()
RETURN
SWITCH(
    MAX(cfd_kpi_gold_trends[kpi_type]),
    "1", FORMAT(kpi_result, "Percent"),
    "2", FORMAT(kpi_result, "Standard"),
    "General"
)
 
The result of the measure and the raw column in a table:
Zoe_Guest_0-1776077086174.png

Some of the values are not showing correctly. Why are they not showing as the value as a percent? How can I get them to show correctly? The underlying data seems correct as on a line chart the values are correct but the tooltip shows the wrong value.

The measure is created in the model. It is a direct lake on OneLake model.

 
1 ACCEPTED SOLUTION
grazitti_sapna
Super User
Super User

Hi @Zoe_Guest,

 

Issue is with FORMAT(kpi_result"Percent") line, as it's converting KPI result to text and scaling it by 100.

 

Use below measure instead

 

VAR kpi_type = MAX(cfd_kpi_gold_trends[kpi_type])

RETURN
SWITCH(
kpi_type,
"1", "0.00%",
"2", "#,##0",
"General"
)

 

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

View solution in original post

2 REPLIES 2
Zoe_Guest
Frequent Visitor

Thank you that has worked! 😄

grazitti_sapna
Super User
Super User

Hi @Zoe_Guest,

 

Issue is with FORMAT(kpi_result"Percent") line, as it's converting KPI result to text and scaling it by 100.

 

Use below measure instead

 

VAR kpi_type = MAX(cfd_kpi_gold_trends[kpi_type])

RETURN
SWITCH(
kpi_type,
"1", "0.00%",
"2", "#,##0",
"General"
)

 

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.