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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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