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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rpinxt
Impactful Individual
Impactful Individual

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
Impactful Individual
Impactful Individual

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!





rpinxt
Impactful Individual
Impactful Individual

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!





rpinxt
Impactful Individual
Impactful Individual

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!





rpinxt
Impactful Individual
Impactful Individual

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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