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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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