Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
gsr151
Regular Visitor

Custom Bins based on Calculated Measure at Fixed Aggregation

Hi all,

 

I need to create custom bins which will display the count of products segmented by the number of times they turnover each year.

 

ie. 500 products turnover 2 times, 1000 products turnover 3 times, 200 products turnover 4 times.

 

The number of times a product turns over each year is calculated as follows.

 

Turns = (SUM([Revenue]) - SUM([Gross Margin]))/SUM([Inventory Amount])

 

If I create a table with the [Product] field included I will see the number of turns for each product.

table.PNG

So now I need to incorporate the [Product] field to set the level of aggregation in an IF statement (or similar) so I can return a dimension and then do a count distinct of products against that dimension - here's a mock up in excel.

 

Table 2.PNG

 

I've tried a range of options offered in other threads but seem to get stuck as I need to use an aggregated measure as the basis of my bins.

 

Any suggestions?

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @gsr151,

 

As I know, Group only support for column, so we cannot group based on measure.

 

May be you could try another way. Please have a reference of this blog may help you.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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