Forum Discussion

kasebast's avatar
kasebast
Frequent Visitor
7 years ago
Solved

Line and clustered column chart

Hi, I tried adding datas to this chart. However my 2 datas that i want as coloumns(which are different) seem to follow the other. Example if i added "created week" to coloumn values 1st, "closed dat...
  • MFelix's avatar
    7 years ago

    Hi kasebast ,

     

    You need to create a bridge table with all the weeks on your created and closed week, then make two relationships between that table and the two columns on your data table.

     

    Then create the following measures:

    Created = COUNT(Table1[Created Week])
    
    Closed =
    IF (
        MAX ( WEEK[WEEK] ) = BLANK ();
        BLANK ();
        CALCULATE (
            COUNT ( Table1[Closed Week] );
            USERELATIONSHIP ( Table1[Closed Week]; WEEK[WEEK] )
        )
    )

    Assuming that the active relationship is on the open date.

     

    Then add the week from the bridge table on x-axis and the measures on values.

     

    Check PBIX file attach.

    Regards,

    MFelix