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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Danny2020
Helper I
Helper I

Time Intelligence last year measure - quarterly amounts

Hello,

 

I have a large table with quarterly amounts like this:

 

Desc 1Desc 2Desc 3Desc 4Desc 5Desc 6YearQuarterDateActual
AAABBBCCCDDDEEEFFF2012Q13/31/2012xxx
AAABBBCCCDDDEEEFFF2012Q26/30/2012xx

 

I calculated the date column in Power Query, to show the last date for each quarter. This date has a relationship with a calendar table.

 

I tried to create a measure in DAX to calculate the last year (2011) amount for each quarter. I have complete data for each of the  quarters in 2011 and with the same values from Desc 1 to Desc 6 (description). However, because I don't have daily data, the measure returns empty value. 

 

How to create a measure in DAX to show last year - last quarter for each line?

 

Thanks

2 REPLIES 2
Danny2020
Helper I
Helper I

Hi @amitchandak 

 

Thank you for your reply. I previously tried to use the time intelligence measures you mentioned but they are returning blank. I think the reason is that the data is available only for the end of each quarter, e.g. (3/31/2012), (6/30/20212), so it is not time continuous.

 

 

amitchandak
Super User
Super User

@Danny2020 , Join the date of your table with the date of a date table. It should be marked as a date table. You need to use the field from the date table in measure, visual and slicer.

 

You can try measure like

 

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

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.