Forum Discussion
Stacked Column Chart with Aggregated Data
- Anonymous6 years ago
Hi bga1 ,
Based on your data, I created below chart, hope that's what you want:
I created 4 measure:
Measure 6 = CALCULATE(MIN('Table (3)'[DeltaDays]),ALLEXCEPT('Table (3)','Table (3)'[tblOrder_ID])) BLUE = CALCULATE(DISTINCTCOUNT('Table (3)'[tblOrder_ID]),FILTER('Table (3)',[Measure 6] < 0)) DARK BLUE = CALCULATE(DISTINCTCOUNT('Table (3)'[tblOrder_ID]),FILTER('Table (3)',[Measure 6] = 0)) ORANGE = CALCULATE(DISTINCTCOUNT('Table (3)'[tblOrder_ID]),FILTER('Table (3)',[Measure 6] > 0))Please try.
Aiolos Zhao
Thanks Anonymous !
Your post helped me a lot.
Ther's one more problem I think.
I have to know the amount of rows in the order table. If I count in tblOrderTask I think I get the amount of Tasks and not orders.
Less = CALCULATE(COUNTROWS(tblOrderTask); tblOrderTask[Column] = 0)
I tried It like that, but it only shows the total amount of rows in tblOrder
Less = CALCULATE(COUNTROWS(tblOrder); tblOrderTask[Column] = 0)
Any ideas?
So, for my example in the OP it should show 1/1/1 because ther's one order in each group.
- Anonymous6 years agoNot applicable
Hi bga1 ,
Based on your data, I created below chart, hope that's what you want:
I created 4 measure:
Measure 6 = CALCULATE(MIN('Table (3)'[DeltaDays]),ALLEXCEPT('Table (3)','Table (3)'[tblOrder_ID])) BLUE = CALCULATE(DISTINCTCOUNT('Table (3)'[tblOrder_ID]),FILTER('Table (3)',[Measure 6] < 0)) DARK BLUE = CALCULATE(DISTINCTCOUNT('Table (3)'[tblOrder_ID]),FILTER('Table (3)',[Measure 6] = 0)) ORANGE = CALCULATE(DISTINCTCOUNT('Table (3)'[tblOrder_ID]),FILTER('Table (3)',[Measure 6] > 0))Please try.
Aiolos Zhao
- bga16 years agoFrequent Visitor
Anonymous
Thank you so much for the support so far
I have one additional question:
Measure 6 = CALCULATE(MIN('Table (3)'[DeltaDays]),ALLEXCEPT('Table (3)','Table (3)'[tblOrder_ID]))Lets assume we have another column [Status] in Table (3).
What do I have to change in this measure, when I want to only consider values for this measure that have [Status] 1 or 8?
- Anonymous6 years agoNot applicable
Hi bga1 ,
Please try below measure:
CALCULATE(MIN('Table (3)'[DeltaDays]),ALLEXCEPT('Table (3)','Table (3)'[tblOrder_ID]),OR(Status = 1,Status = 8))Aiolos Zhao