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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
swaroopkumarmg
Helper II
Helper II

Measure in between Brackets

Hello PBI Nation,

 

Need a small help.

 

Im trying to create a measue that show percentage. example : 89%

Im able to come up with the calculation and the correct number, but i want the percentage to be displayed on a card in between brackets. Example: (89%)

 

this is what i'm trying: Measue = "(" & (precentage calculation) & ")"

 

the minute i do this it turns it into a string and i'm not getting the desired result.

 

Can anyone please help.

1 ACCEPTED SOLUTION
EricHulshof
Solution Sage
Solution Sage

The measure calculating the percentage will most likely return the value 0.89.
When selecting this as a percentage Power BI makes sure it looks like 89%. (0.89*100). 

So basically you have to create the string like: 

"(" & (precentage calculation)*100 & "%)"

Quality over Quantity


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


View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

Try

Measure = "(" & [precentage calculation] & ")"
or
Measure = "(" & [precentage calculation]*100 & ")"
EricHulshof
Solution Sage
Solution Sage

The measure calculating the percentage will most likely return the value 0.89.
When selecting this as a percentage Power BI makes sure it looks like 89%. (0.89*100). 

So basically you have to create the string like: 

"(" & (precentage calculation)*100 & "%)"

Quality over Quantity


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


Thank you so much for th reply.

 

I have tried this, but the problem with it is that it returns with a lot of numbers after the decimal point. 

 

Example: (89.1231245%)

 

Any way i can limit the numbers to 1 place after the decimal point. i.e. (89.1%)

 

please let me know.

 

Please ignore my previour message. was able to fix it with Fixed() function. thanks for the help this works just fine. 🙂

 

You can use ROUND()

ROUND(<number>, <num_digits>)

 


Quality over Quantity


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


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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