cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Line chart Z-Order

Is there a way to specify the Z-order of multiple series on a line chart?

Specifically, how would I force the red line to appear in front of the blue line in the following line chart?

Z-Order.jpg

I have tried ordering the items in the Values specification.  This only affects the ordering of the legend items, but not the actual line display.

 

Thanks,

Ross

 

UPDATE: As noted in the accepted solution, the key to the Z-ordering is to refresh the display after  changing the order of the items in the values list.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Line chart Z-Order

@Anonymous

 

There is a workaround: after change the order of values, please changes pages, or save and reload the report, then it will draw lines in the order that the Legend shows things.

 

Product team will look at possible sorting the line elements at a later time.

 

Best Regards,
Herbert

View solution in original post

7 REPLIES 7
Super User IV
Super User IV

Re: Line chart Z-Order

Change your order so that the measure you want is the dominant line. Then go into the format area and switch your data colors?


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Anonymous
Not applicable

Re: Line chart Z-Order

That was my initial expectation and the first thing I tried.

It does change the order in the legend, but does not appear to affect the line display:

Z-Order2.jpg

Highlighted
Microsoft
Microsoft

Re: Line chart Z-Order

Hi,

 

It looks strange. I will do more test and post later.

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper I
Helper I

Re: Line chart Z-Order

Having the same issue with one line on top of another, and no impact of sort order on this.  Sort order only changes the lengend.  Using 2.46.4732.721 64-bit (May 2017)

 

Did anything get solved here?

Highlighted
Anonymous
Not applicable

Re: Line chart Z-Order

Still nothing concretely resolved.

However, after randomly moving things around hoping to find some correlation, the desired display order started working.

But I have no idea if/what change may have actually initiated the resulting display.

chart.png

Highlighted
Microsoft
Microsoft

Re: Line chart Z-Order

@Anonymous

 

There is a workaround: after change the order of values, please changes pages, or save and reload the report, then it will draw lines in the order that the Legend shows things.

 

Product team will look at possible sorting the line elements at a later time.

 

Best Regards,
Herbert

View solution in original post

Highlighted
Helper I
Helper I

Re: Line chart Z-Order

My line chart is a single value measure with a variable in legend (as opposed to mutliple values).  This fix isn't solving this for me.  Have tried the solution and not experiencing it being fixed unfortunately.  The variable on the legend is sorted and working on other charts.  

In case anyone asks, I have tried reversing the sort of the variable to solve the problem and that doesn't make it change

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors