cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper I

## Possible Bucketing

Hello everyone,

I have a simple measure that calculates the % of losses that I have: [% losses] = Divide ( loss, allquantity)

What I'm trying to figure out is a way to filter that measure, [%losses], given certain criteria.

Example: which is the total [%losses] when considering values that are less than 5%, 10% and so on, like its shows in the following graph:

I thought this was a case of dynamic sgmentation/bucketing but i cant seem to make it work.

Any ideas?

Thanks

1 ACCEPTED SOLUTION
Community Support

Hi @Kebas_Leech ,

``````Percentage =
GENERATESERIES(0,1,0.05)``````

Measure:

``````Measure =
CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER('Table',[% losses]<=MAX(Percentage[Percentage])))``````

Result is as below.

Best Regards,
Rico Zhou

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

3 REPLIES 3
Community Support

Hi @Kebas_Leech ,

``````Percentage =
GENERATESERIES(0,1,0.05)``````

Measure:

``````Measure =
CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER('Table',[% losses]<=MAX(Percentage[Percentage])))``````

Result is as below.

Best Regards,
Rico Zhou

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

Helper I

Hello @v-rzhou-msft

First of all, I want to personally thank you for using your time to help me.

It worked, I made some adjustments but overall, what was missing was the generateseries.

Thanks again.

Kindly

Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors