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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

Top Solution Authors