Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Dynamic Column according to date selected

Hello guys,

 

I'm trying to calculate the amount of orders grouping by status in the selected date. I have a fact Sales, Calendar and a fact Historical Sales


fSales

id_ordersales date
ab12301/01/19
ab12402/01/19
ab12502/01/19
ab12603/01/19

fHistoricalSales

id_OrderDT_StatusStatus
ab12301/01/19NOR
ab12315/01/19CAN
ab12402/01/19NOR
ab12413/01/19CAN
ab12503/01/19NOR
ab12514/01/19CAN
ab12520/01/19REC
ab12605/01/19NOR

 

I can count the Id orders if I get the last status order like following image. 

 

But I'd like when I select the range date like from 01/01/2019 to 13/01/2019 I get the status the orders were in that time, not the last status, like this:

 

 

Thanks!

 

 

1 Reply

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    Anonymous ,

     

    Why the count value of 01/JAN with NOR is 1? Isn't it 2? Could you share more logic of the matrix chart?

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.