cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gsr151 Visitor
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
Community Support Team
Community Support Team

Re: Custom Bins based on Calculated Measure at Fixed Aggregation

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.