Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 group containing "Quarter", "Last Quarter" and "Quarter Over Quarter". The problem occurs when I filter on "Last Quarter"- then the same value as "quarter" shows because todays date is in Q4, and it shows last quarter which is Q3 (but I want Q2 to show because there is no data for Q4 yet.
Any suggestions on how I can solve this?
Solved! Go to Solution.
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 )
)
Proud to be a Super User!
Hi @Krjen156 ,
Please share a sample file, data or used measures.
Hi @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.
Proud to be a Super User!
Done!
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 )
)
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
102 | |
75 | |
44 | |
39 | |
32 |
User | Count |
---|---|
161 | |
87 | |
64 | |
46 | |
42 |