Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dedelman_clng
Community Champion
Community Champion

reset YTD line

I have a situation where I am using a column/line combo chart, showing monthly values in the columns and YTD values on the lines. The user would like to see multiple years side-by-side (instead of stacked since we're looking at multiple values at once), but the YTD line doesn't "reset" when going from Dec 2018 to Jan 2019, and the diagonal line looks awkward.

 

Here is the general idea of what I want to see (this is using "Year" as the column series, so only one value is allowed - plus the legend is very hard to understand):

 

YTD1.png

 

But here's what it ends up looking like (with multiple values in the column, but no series)

 

YTD2.png

 

The connection between the high point in Dec 2018 and the low point in Jan 2019 is what I'm trying to remove.

 

Here is the data with which I made the chart, which resemble my real data in structure.  The date field is linked to a Date table.

 

DateAmountAmt
1/1/2018505
2/1/2018505
3/1/2018505
4/1/2018505
5/1/2018505
6/1/2018505
7/1/2018505
8/1/2018505
9/1/2018505
10/1/2018505
11/1/2018505
12/1/2018505
1/1/201910010
2/1/201910010
3/1/201910010
4/1/201910010
5/1/201910010
6/1/201910010

 

Is there anything in DAX or in the settings that I am missing that can do this?

 

Thanks in advance,

David

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @dedelman_clng,

 

Based on my test, it looks like the best choice is to add "Year" to chart legend to break the line. Without legend, all date points across multiple years are recognized as continuous dates.

 

Regards,

Yuliana Gu

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors