Forum Discussion

gringo89's avatar
gringo89
Helper I
6 years ago

count state evolution by date

Hi,

Firstly, sorry for my english.

 

We want to restitute the number of document on each status by date.

My fact table likes :

usersDate eventType event
101/03/2020Sended
104/03/2020Recevied
106/03/2020Integrated
106/03/2020Finished
201/03/2020Sended
203/03/2020Received
302/03/2020Sended
310/03/2020Received
311/03/2020Integrated
315/03/2020Finished
405/03/2020Sended
406/03/2020Received
407/03/2020Integrated

The workflow document is : Sended, received, integrated and finished

i have 3 dimensions : date, user et type event. 

 

On each date, i want to know the stock on each type event :

Type events01/03/202002/03/202003/03/202004/03/202005/03/202006/03/202007/03/202008/03/202009/03/202010/03/202011/03/202012/03/202013/03/202014/03/202015/03/2020
Sended232121111000000
Received001222111211111
Integrated000000111122221
Finish000001111111112

 

I want to create a measure but i don't know the dax syntax which can do it.

 

Thanks for your helps

 

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi gringo89 ,

     

    Try creating a matrix visual with Type of Event as Rows, Dates as column and USers as Values.

     

    You should be able to get your desired output.

     

    Cheers

     

    CheeenuSing

  • az38's avatar
    az38
    Community Champion

    Hi gringo89 

    you dont need DAX for this task

    just place fields in the visual as shown below

    pay attention - values is Count (Distinct)

    pbix-file is attached

    • gringo89's avatar
      gringo89
      Helper I

      Hi,

       

      thanks for your helps!

      This approch can't solve my need. in fact, the 2 march my stock on "sended" type event would be 3 😞