cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ikezaki
Frequent Visitor

Counting Percentages

Hi everyone,

 

I have a calculated measure, where a calculate the percentage of the products we have in the inventory, and we have a target of 98.5% of accuracy of the inventory.

What I need to do is to count how many products did not meet the target of 98.5%, also for how much the missed the target. For example three products didnt meet the target by 1% because they reached 97.5%, 10 products didnt meet the target bt 3% because they reached 95.5%.

 

It sounds confusing but I dont know a better way to explain.

 

Thank you in advance.

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Ikezaki ,

 

Can this meet your requirements?

Icey_0-1635747833547.png

 

Steps:

1. Create Bins.

bin.gif

 

2. Create measures.

Diff = MAX('Table'[accuracy (bins)])-0.985
Counts_<Target (Optional) = CALCULATE(DISTINCTCOUNT('Table'[Product]),'Table'[accuracy]<0.985)

Icey_1-1635748113264.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Ikezaki ,

 

Can this meet your requirements?

Icey_0-1635747833547.png

 

Steps:

1. Create Bins.

bin.gif

 

2. Create measures.

Diff = MAX('Table'[accuracy (bins)])-0.985
Counts_<Target (Optional) = CALCULATE(DISTINCTCOUNT('Table'[Product]),'Table'[accuracy]<0.985)

Icey_1-1635748113264.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlexisOlson
Super User
Super User

Can you provide some example data and desired output? There's not enough here to provide a useful answer.

 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!