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
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
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.