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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
rpinxt
Power Participant
Power Participant

Formatting in a calculation group item

I made this calculation group items :

rpinxt_0-1714480819858.png

So 3 pieces. But 2 of them are pecentages.

The calculation group works just fine 

rpinxt_1-1714480885566.png

But when you select a percentage:

rpinxt_2-1714480947812.png

I would rather have a decent percentage with 1 decimal.

Can that be done?

 

 

 

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hello! You can create the format string to display as a percent. In Power BI, click on the calculation item that you want to format, then expand Formatting and toggle dynamic format string to on 

audreygerred_0-1714483331767.png

Once it is on, you can enter the formatting you want:

audreygerred_1-1714483413409.png

For percent you can do "#.#%" or however many decimal places you want.

 

You can do the same in Tabular Editor 2.

 





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

Proud to be a Super User!





View solution in original post

8 REPLIES 8
rpinxt
Power Participant
Power Participant

Ok @audreygerred I see why yours is working....
I converted my stacked column into a matrix:

rpinxt_0-1714487237907.png

Now it has also 1 decimal....🤔

 

Something in the formatting of the stacked column chart??

 

It could be - maybe in the stacked column you had it set to two decimals in the visual formating pane.

When I make a stacked column with my calculation group, I get the one decimal like I have specified:

audreygerred_0-1714488029072.png

However, if I change the formatting on the viusal itself to 2, then I have 2:

audreygerred_1-1714488073749.png

 





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

Proud to be a Super User!





Yes I made one from scratch and there was also only 1 decimal.

Will dig a bit deeper in my old stacked column to see if I can find something.

Otherwise nothing else to do than recreate.

Thanks for the info!

You are very welcome! Have a great day!





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

Proud to be a Super User!





audreygerred
Super User
Super User

Hello! You can create the format string to display as a percent. In Power BI, click on the calculation item that you want to format, then expand Formatting and toggle dynamic format string to on 

audreygerred_0-1714483331767.png

Once it is on, you can enter the formatting you want:

audreygerred_1-1714483413409.png

For percent you can do "#.#%" or however many decimal places you want.

 

You can do the same in Tabular Editor 2.

 





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

Proud to be a Super User!





Great @audreygerred ! I had that pane hidden. Thank for pointing it out.

However I am not yet fully there :

rpinxt_0-1714483826609.png

rpinxt_1-1714483856390.png

Still giving me 2 decimals. Which make everything above 9,99% not to show.

Any idea why I am not getting 1 decimal?

That is odd. I am not sure why it is still showing 2 decimal places. When I do mine, it works. In the table on the left I have the calgulation group in and YoY% is showing 1 decimal place like I have it formatted to do, and in my table on the right I added in the measure I have explicitly defined and it is showing two decimal places (like that measure is formatted to do). 

audreygerred_0-1714485549389.png

 





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

Proud to be a Super User!





Well that is strange and extremely anoying then.....

Doesn't matter what I do "#%" 2 decimals. "#,#%" 2 decimals "#.#%" 2 decimals....

 

In my old Tabular Editor solution I had "0.0%" but again 2 decimals...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors