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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
lennox25
Post Patron
Post Patron

Help to create % Measure

I have created a % measure as follows :

% of Yellow = divide([No of Yellow],[Count of Category])*100-100 
 
The result is correct when unformatted and left as general- however it is showing a minus value e.g  -99.96. I want it to show 99.96% When I format to % it shows incorrectly as -9995.54%
 
The measures No of Yellow is - 
No of Yellow  = if(ISBLANK(CALCULATE(
DISTINCTCOUNT(table [ID]),
FILTER(Table, Table[Colour] = "Yellow"))),0,CALCULATE(
DISTINCTCOUNT(table [ID]),
FILTER (Table, Table [Colour] = "Yellow")))
 
and Count of Category is
Count of  Category = CALCULATE(COUNT(Table [Category]) +0 )
 
 
Can anyone help?
1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @lennox25 ,

 

if you want to use the format as "percentage" option, do not multiply by 100. If you want to show the result as poisitive consider using the ABS function like so:

% of Yellow = ABS(divide([No of Yellow],[Count of Category])-1)

Hopefully, this provides what you are looking for.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey @lennox25 ,

 

if you want to use the format as "percentage" option, do not multiply by 100. If you want to show the result as poisitive consider using the ABS function like so:

% of Yellow = ABS(divide([No of Yellow],[Count of Category])-1)

Hopefully, this provides what you are looking for.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Kudos to you 🙂 Thank you so much!!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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