Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Converting stages with dates into a timeline chart.

I have some data which looks like the following:        What I want to do is create a chart which will show me how many ideas were in each stage on that particular date.   e.g. on 31/7/2018...
  • OwenAuger's avatar
    7 years ago

    Hi Anonymous

     

    Here is one approach - uploaded pbix here.

     

    1. Transform your Ideas table into this form:

       

    2. Create a disconnected 'Date' table

    3. Create this measure:

      Idea Count as at Latest Stage =
      VAR MaxDate =
          MAX ( 'Date'[Date] )
      RETURN
          CALCULATE (
              DISTINCTCOUNT ( Ideas[Idea] ),
              GENERATE (
                  VALUES ( Ideas[Idea] ),
                  CALCULATETABLE (
                      LASTDATE ( Ideas[Date] ),
                      ALLEXCEPT ( Ideas, Ideas[Idea] ),
                      Ideas[Date] <= MaxDate
                  )
              )
          )

       This measure creates a filter combining each Idea with its latest Date. When you apply a Stage filter and a 'Date'[Date] filter, you can then count the Ideas for which the filtered Stage(s) are the latest stage as at the latest Date filtered.

    4. Stacked column visual looks like this - I think you wanted something similar:

       

    Is that the sort of thing you were looking for?

     

    Regards,

    Owen