Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Line chart with multiple axes

Hi, im trying to replicate the below chart from Tableau to powerbi.    The 4 horizontal lines are a result of values from 4 different columns and the bottom two lines (black and orange) are f...
  • v-kkf-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    I create the sample data:

     

    1. Use the cunstom visual: Multiple Axes Chart - XViz.

    Then we need create these measures.

    Line 1 = CALCULATE(SUM('Table'[Line1]),REMOVEFILTERS('Table'[Type]))
    Line 2 = CALCULATE(SUM('Table'[Line2]),REMOVEFILTERS('Table'[Type]))
    Line 3 = CALCULATE(SUM('Table'[Line3]),REMOVEFILTERS('Table'[Type]))
    Line 4 = CALCULATE(SUM('Table'[Line4]),REMOVEFILTERS('Table'[Type]))

     

    2. Or Use Line chart.

    Then create measures:

    Line5_TypeA = CALCULATE(SUM('Table'[Line5]),'Table'[Type] = "A")
    Line5_TypeB = CALCULATE(SUM('Table'[Line5]),'Table'[Type] = "B")

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.