cancel
Showing results for
Did you mean:
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.

1 ACCEPTED SOLUTION
Community Support

Hi @Ikezaki ,

Steps:

1. Create Bins.

2. Create measures.

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

Best Regards,

Icey

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

2 REPLIES 2
Community Support

Hi @Ikezaki ,

Steps:

1. Create Bins.

2. Create measures.

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

Best Regards,

Icey

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

Super User

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

Announcements

#### The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

#### Charticulator Design Challenge

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

#### Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!