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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.