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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
LukeDurrant
Frequent Visitor

YTD Line Graph

I want my YTD line graph to show Jan-Oct when Oct is selected on the slicer but it is only showing data for October?

LukeDurrant_0-1707319761898.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LukeDurrant 

 

I ran the testing as follows.

 

My sample:

vxuxinyimsft_0-1707390746014.png

 

vxuxinyimsft_1-1707390779669.png

 

Create a measure as follows

Measure = IF(MONTH(MAX('Table'[Date])) <= MONTH(SELECTEDVALUE('Date'[Date])), 1, 0)

 

Put the measure into the visual-level filters, set up show items when the value is 1.

vxuxinyimsft_4-1707390954483.png

Is this the result you expect?

 

Best Regards,
Community Support Team _Yuliax

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @LukeDurrant 

 

I ran the testing as follows.

 

My sample:

vxuxinyimsft_0-1707390746014.png

 

vxuxinyimsft_1-1707390779669.png

 

Create a measure as follows

Measure = IF(MONTH(MAX('Table'[Date])) <= MONTH(SELECTEDVALUE('Date'[Date])), 1, 0)

 

Put the measure into the visual-level filters, set up show items when the value is 1.

vxuxinyimsft_4-1707390954483.png

Is this the result you expect?

 

Best Regards,
Community Support Team _Yuliax

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

LukeDurrant
Frequent Visitor

Is it possible to change it so that i only have to select oct to show Jan - Oct?

audreygerred
Super User
Super User

You need to select Jan-Oct in the slicer to get it to show Jan-Oct.





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

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.