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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
AlexJ01
Helper I
Helper I

How to get line graph to only display total up to todays date?

Hi there,

I've got a cumulative line graph set up, but I only want the total to display up to this month (not beyond).  The light blue line shows planned tasks, the dark blue line shows completed tasks. What I've got is on the left, what I want is on the right. Is there any way I can achieve this?

AlexJ01_0-1661354865984.png

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @AlexJ01 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1661755287331.png

vjianbolimsft_1-1661755314423.png

Please try:

 

Measure = CALCULATE(COUNT('Table'[Name YTD]),FILTER('Table',MONTH([Date])<=MONTH(TODAY())))

 

Final output:

vjianbolimsft_2-1661755394641.png

Best Regards,

Jianbo Li

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

2 REPLIES 2
AlexJ01
Helper I
Helper I

Hello,

 

Thank you for your feedback, but this still does not work. It works for a single line, but if there are two lines then they both continue to the latest date. Can you please -re-open this? 

v-jianboli-msft
Community Support
Community Support

Hi @AlexJ01 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1661755287331.png

vjianbolimsft_1-1661755314423.png

Please try:

 

Measure = CALCULATE(COUNT('Table'[Name YTD]),FILTER('Table',MONTH([Date])<=MONTH(TODAY())))

 

Final output:

vjianbolimsft_2-1661755394641.png

Best Regards,

Jianbo Li

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

 

 

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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