Forum Discussion
Krjen156
1 year agoNew Member
Time Intelligence. Quarter and Last Quarter
Hello! I'm trying to create a report of financial statements. The most recent data is from Q3 (2024-09-31). My datetable contains data from 2020-01-01 to 2024-12-31. I've created a calculation...
- 1 year ago
I honestly don't get the reasoning behind why you want to show the data from 2 quarters ago for LQ if the latest quarter is blank but here you go
LQ = VAR Q = CALCULATE ( SELECTEDMEASURE (), DATESQTD ( 'Date'[Date] ) ) VAR _Count = IF ( ISBLANK ( Q ), -2, -1 ) RETURN CALCULATE ( SELECTEDMEASURE (), DATEADD ( DATESQTD ( 'Date'[Date] ), _Count, QUARTER ) )
danextian
Super User
1 year agoHi Krjen156
What measures did you use? How does your model look? Also, please post a workable sample data (not an image) and your expected result from that with the reasoning.
Krjen156
1 year agoNew Member
Done!
- danextian1 year ago
Super User
I honestly don't get the reasoning behind why you want to show the data from 2 quarters ago for LQ if the latest quarter is blank but here you go
LQ = VAR Q = CALCULATE ( SELECTEDMEASURE (), DATESQTD ( 'Date'[Date] ) ) VAR _Count = IF ( ISBLANK ( Q ), -2, -1 ) RETURN CALCULATE ( SELECTEDMEASURE (), DATEADD ( DATESQTD ( 'Date'[Date] ), _Count, QUARTER ) )