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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.