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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
senorbol
Frequent Visitor

Stop Line Chart at end of previous quarter

Hi All, Wondered if someone had some knowledge on the following use case. 

 

I have a bar over line chart that is in quarters and years - I want to stop the green line chart element at the end of the previous quarter to one we are currently in. Using the screenshot below - at the moment we are in Quarter 3 2021 - I would like the line chart to stop at Q2 2021 - and then going forward when we move into Q4 2021 I would like the line chart to stop at Q3 2021 and so on...

 

I'm not sure if this is possible but any help/advice would be really appreciated.

 

senorbol_0-1629361740243.png

 

 

3 REPLIES 3
senorbol
Frequent Visitor

Hi @lbendlin - thanks so much for the reply. I use a measure at the moment to draw the line. I'm using the following calculation - any tips on how I can amend this to get the desired result? 

 

Cumulative Actual Calc  =
IF( MINX( 'M Calendar', [Date]) <= TODAY(),
CALCULATE(SUM('Master Data 2'[Actual_Final_Decom]) + SUM('Master Data 2'[Actual_Final_Migration]) ,
FILTER( ALLSELECTED ('M Calendar'), 'M Calendar'[Date] <= MAX('M Calendar'[Date])
)))

I would write it differently.

 

Cumulative Actual Calc  =
IF( MIN('M Calendar'[Date]) <= TODAY(),
CALCULATE(SUM('Master Data 2'[Actual_Final_Decom]) + SUM('Master Data 2'[Actual_Final_Migration]) ,BLANK())
lbendlin
Super User
Super User

Do you use a column to feed the line , or a measure?  You would want to use a measure, and set the return value to BLANK() for the periods where you don't want the line to draw.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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