Forum Discussion
Anonymous
4 years agoNot applicable
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...
- 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.
amitchandak
4 years agoSuper User
Anonymous , In analytics pane( visual format, search glass icon). You have the option for constant line, You can use a measure or static value there
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-analytics-pane