Forum Discussion

gsr151's avatar
gsr151
Regular Visitor
7 years ago

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.

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.

 

 

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

  • v-piga-msft's avatar
    v-piga-msft
    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