Forum Discussion

SuperCal99's avatar
SuperCal99
Helper I
4 years ago
Solved

Complex Calendar Table related Question

Hi,

Bit of a complex calendar related table question which I hope someone can help me with.

 

I have a request to create a line graph showing the number of registrations into a variety of different events over a three-year period. The X axis will display the number of weeks to the date of the event, from the first date a registration was made. The Y axis displaying the total number of registrations.

 

I have the following events. I want to compare in a graph Event A across 2018,2019,2022. Event B across 2018,2019,2022

Event A – 2018
Event A – 2019
Event A – 2022
Event B – 2018
Event B – 2019
Event B – 2022


Each event cycle is slightly different, examples as follows

 

I have pivoted the data by date for each event

 

 

 

 

Any suggestions on how I can ultimately achieve a graph like the below? Hope the above is enough to get a solution, do let me know if any further information is needed. Appreciate it.

 

 

  • This is a general guideline. First I suggest you try and combine your pivoted tables as such:

    Date|Event|No Registrations|(Cumulative)
    28/05/2017|Event A 2017|12|(12)

     

    I put the cumulative in brackets as this could and should be calculated as a measure.

    Then, create a relationship from a table listing the event dates. Registrations opened -date is not needed.

    After that you can create a column for "Weeks before event date". Have a look at related() if you want to use a dax column. The calculation (week difference) should be easily googleable.

    Please ask help for any stage of this process.

4 Replies

  • Gabriel_Walkman's avatar
    Gabriel_Walkman
    Continued Contributor

    This is a general guideline. First I suggest you try and combine your pivoted tables as such:

    Date|Event|No Registrations|(Cumulative)
    28/05/2017|Event A 2017|12|(12)

     

    I put the cumulative in brackets as this could and should be calculated as a measure.

    Then, create a relationship from a table listing the event dates. Registrations opened -date is not needed.

    After that you can create a column for "Weeks before event date". Have a look at related() if you want to use a dax column. The calculation (week difference) should be easily googleable.

    Please ask help for any stage of this process.