Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Priority buckets including previous bucket

Hi All,

 

I'm trying to create the following buckets/bins for the data below: 

 

Buckets/bins:

Buckets/BinsIncludes
5 only5 only
4 and above4 and 5
3 and above3, 4 and 5
2 and above2, 3, 4 and 5
All1, 2, 3, 4 and 5

 

Data:

Item NumberCostPriority
A101
B203
C304
D102
E203
F405
G203
H105
I52

 

I want the output to look like below:

BucketsNumber of ItemsTotal Cost

5 only

250
4 and above380
3 and above6140
2 and above8155
All9165

 

Could someone please help with how to get to this result. Thanks! 

2 Replies

  • Anonymous , These are not mutually exclusive. So better to create a measure then create a calculation groups

     

    More than 1 = calculate(Sum(Table[Cost]), filter(Table, Table[priority]>=1) )

     

    More than 2 = calculate(Sum(Table[Cost]), filter(Table, Table[priority]>=2) )

     

    Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0