Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Split line chart axis by categories

Hello,   I'd like to create a line chart like the following one :     The part I'm struggling with is the split of the X axis by the Month_Status. I tried the solution with the "concatena...
  • v-danhe-msft's avatar
    v-danhe-msft
    7 years ago

    Hi Anonymous,

    Based on my test, you could refer to below steps:

    Create four measures:

    Measure = CALCULATE(SUM(Table1[NN_Conversion Rate]),FILTER('Table1','Table1'[NN_Cop]="Customer"&&'Table1'[Month_Status]<>"Temporary"))
    Measure2 = CALCULATE(SUM(Table1[NN_Conversion Rate]),FILTER('Table1','Table1'[NN_Cop]="Prospect"&&'Table1'[Month_Status]<>"Temporary"))
    Measure3 = CALCULATE(SUM(Table1[NN_Conversion Rate]),FILTER('Table1','Table1'[Month_Status]="Temporary"&&'Table1'[NN_Cop]="Customer"))
    Measure 4 = CALCULATE(SUM(Table1[NN_Conversion Rate]),FILTER('Table1','Table1'[Month_Status]="Temporary"&&'Table1'[NN_Cop]="Prospect"))

    Result(create a Line and clustered column chart):

    You could also download the pbix file to have a view.

     

    Regards,

    Daniel He