Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Line chart with item status

Hello all,

 

I hope you can help me. I would like to have a line chart that shows the status of an item. An item can be open or closed. Open items can be overdue. My fact table looks like the one below.

My goal is to have a line chart with two lines. One that shows the # of open items and one that shows the # of open items that are overdue.

 

Any advice on how to do this would be much appreciated, thanks!

 

ItemNoCreateDateDueDateCloseDate
11-1-20201-4-202031-3-2020
21-1-20201-4-202031-3-2020
31-1-20201-4-20201-6-2020
41-1-20201-4-20201-6-2020
51-1-20201-5-20201-6-2020
61-1-20201-6-202031-5-2020
71-1-202031-12-2020 
81-1-202031-12-2020 
91-1-202031-12-2020 
1015-3-202030-4-202031-7-2020
1115-3-202030-4-202031-7-2020
1215-3-202030-4-202031-7-2020
1315-3-202030-4-202031-7-2020
1415-3-202030-4-202031-7-2020
1515-3-202030-4-2020 
1615-3-202030-4-2020 
1715-3-202030-4-2020 
1815-3-202030-4-202131-3-2020
1915-3-202030-4-2021 
2015-3-202030-4-2021 
2115-3-202030-4-202131-12-2020
2215-3-202030-4-2021 
2315-3-202030-4-2021 
2415-3-202031-12-2020 
2531-5-202031-8-202030-11-2020
2631-5-202031-8-202030-11-2020
2731-5-202031-8-202030-11-2020
2831-5-202031-8-202030-11-2020
2931-5-202031-8-202030-11-2020
3031-5-202031-8-2020 
3131-5-202031-8-2020 
3231-5-202031-8-2020 
3331-5-202031-8-2020 
3431-5-202031-8-202015-7-2020
3531-5-202031-8-202015-7-2020
3631-5-202031-12-2020 
3731-5-202031-12-202030-11-2020
3831-5-202031-12-2020 
3931-5-202031-12-20201-2-2021
4031-5-202031-12-2021 
4131-5-202031-12-2021 
4215-6-202031-10-202031-8-2020
4315-6-202031-10-202031-8-2020
4415-6-202031-10-202031-12-2020
4515-6-202031-10-202031-12-2020
4615-6-202031-10-202031-12-2020
4715-6-202031-10-2020 
4815-6-202031-10-2020 
4915-6-202031-10-2020 
5015-6-202031-10-2020 

8 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak , thank you very much for sharing. So far, I didn't make it work, but I need to put some more time into it.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous , thank you very much! It is almost what I would like to achieve, but for now the calculation doesn't work. For example, if you look at the items with a create date of 1-1-2020 (1 January 2020, dd-mm-yyyy):

      ItemNo CreateDate DueDate CloseDate
      1 1-1-2020 1-4-2020 31-3-2020
      2 1-1-2020 1-4-2020 31-3-2020
      3 1-1-2020 1-4-2020 1-6-2020
      4 1-1-2020 1-4-2020 1-6-2020
      5 1-1-2020 1-5-2020 1-6-2020
      6 1-1-2020 1-6-2020 31-5-2020
      7 1-1-2020 31-12-2020
      8 1-1-2020 31-12-2020
      9 1-1-2020 31-12-2020

       

      On 1-1-2020 there are 9 open items. 2 are closed on 31-3-2020, so on that date there are 7 open items. On 1-4-2020 4 items are overdue, of which 2 are closed. So on 1-4-2020 there are 7 open items, of which 2 are overdue. And on 1-5-2020 there are 7 open items, of which 3 are overdue.

       

      Thanks again,

      Frank

  • Hi,

    What's the calculation for the "number of open items" and "number of open items that are overdue"? 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Ashish_Mathur , thank you for you message.


      # of Open Items = # ItemNo where ItemTable[CloseDate] > Calendar[Date]

      # of Overdue Items = # Open Items where ItemTable[DueDate] < Calendar[Date]

       

      Kind regards