cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
KafeBI Frequent Visitor
Frequent Visitor

Percentage-based KPI from SSAS Tabular model

Using the new KPI visual that was added to Power BI online recently, I am unable to make it display percentage-based KPIs made in SSAS tabular as percentages. The KPIs and corresponding measures are formatted as percentages in the SSAS model, but the KPI visual in Power BI displays the values as decimal numbers. Any idea how to force it to display these values as percentages?

2 REPLIES 2
oweism Occasional Visitor
Occasional Visitor

Re: Percentage-based KPI from SSAS Tabular model

Hi There,

 

I have good news I was able to do it!

 

First right click on your model and click view code. Then click ctrl + F and look for your measure name space goal for example for me it was [_Schedule Load Goal].

 

Once you reach the <calculationReference> XML tage add this line:

<FormatString>'0.00 %;-0.00 %;0.00 %'</FormatString>

 

Like here:

<CalculationReference>[_Schedule Load Goal]</CalculationReference>
<CalculationType>Member</CalculationType>
<Visible>false</Visible>
<FormatString>'0.00 %;-0.00 %;0.00 %'</FormatString>

 

Please note that both the measure value and gola should have the exact same format for ppowerview to show them as percent. The format string above is for a percentage with 2 decimal points.

epieters Frequent Visitor
Frequent Visitor

Re: Percentage-based KPI from SSAS Tabular model

Thanks.

This explanation saved our day.

1Year later and still the same issue in the VS Tabular Model Editor.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 303 members 3,023 guests
Please welcome our newest community members: