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
Zaky
Helper IV
Helper IV

Need Help

Hi,

 

I have created a line chart where it can compare the trending for a different years. In this case i have a 2 years line chart data.

However, the problem is that the line chart will not show a trend for 2 years if the Reported Date filter is set for the current year. For example, if I select performance filter for 2021 only, performance line chart for 2020 will not appear.

My intention is to set the line chart visul stagnant and keep showing the line chart for 2 years instead.

 

isu2.PNG

 

My expectation to have line chart for multiple years as follow, eventhough the reported date is set for current year.

isu1.PNG

How can i achieve this?

 

Thank you.

2 REPLIES 2
amitchandak
Super User
Super User

@Zaky , Try a measure like this with date table(marked as date table too)

 

example

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

 

Filter and axis need to come from date table

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

Sorry i can't understand.

Do i need to created another date table?

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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