Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Time series as shared axis

Hello Everyone, I'm facing a problem into Power BI and I hope some of you could help me.

I'm trying to do a graph with line and columns like this one:

The problem is a have to choose which date put on X axis. My data set is like the one below:

If I put the Planned dates as the shared x axis, my actual date will appear on the planned date and I would like the actual appears at actual date. I did in Excel to show you how it should appear:

 

 

Thank you everyone.

 

Regards

  • mwegener's avatar
    mwegener
    6 years ago

    Hi Anonymous ,

     

    check this out.

    PBIX

     

    Some dates were inconsistent.
    These lines were ignored.

     

    Regards,

    Marcus

    Dortmund - Germany
    If I answered your question, please mark my post as solution, this will also help others.
    Please give Kudos for support.

4 Replies

  • mwegener's avatar
    mwegener
    Icon for Most Valuable Professional rankMost Valuable Professional

    Hi Anonymous ,

     

    link all data fields with a date table.

    Create a measure for each date and activate the corresponding relationship with USERELATIONSHIP.
    Place the date table on the axis.

    https://docs.microsoft.com/en-us/dax/userelationship-function-dax

     

    If you provide some sample data, I can build an example for you.

     

    Regards,

    Marcus

    Dortmund - Germany
    If I answered your question, please mark my post as solution, this will also help others.
    Please give Kudos for support.

     

      • mwegener's avatar
        mwegener
        Icon for Most Valuable Professional rankMost Valuable Professional

        Hi Anonymous ,

         

        check this out.

        PBIX

         

        Some dates were inconsistent.
        These lines were ignored.

         

        Regards,

        Marcus

        Dortmund - Germany
        If I answered your question, please mark my post as solution, this will also help others.
        Please give Kudos for support.