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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors