Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello,
Does someone know how to achieve the following ?
Output table : Products in row vs Revenue in column.
I would like to create a measure that displays current QTD figures in a table that does not contain dates in the output table AND with possibility to filter by previous quarters as well.
While for YTD and Month it is fairly easy. I cannot make it for QTD.
Thanks a lot !
Ar
Solved! Go to Solution.
Based on my test, we can take the following steps to get the result that you want.
1. Enter the data and create a time table and create relationship between the two table based on dates.
2. To get the current and previous QTD, we can use the formulas to create a measure:
Current QTD := CALCULATE(SUM(Table1[Re]), FILTER(Table1, FORMAT(Table1[Date], "q")=FORMAT(NOW(),"q")))
Previous QTD := CALCULATE(SUM(Table1[Re]), FILTER(Table1, FORMAT(DATEADD(dimtime[Date],1,QUARTER), "q")=FORMAT(NOW(),"q")))
3. Also we can create some columns for reference if necessary.
previous quarter = YEAR(DATEADD(dimtime[Date], -1,QUARTER))& "Q" & FORMAT(DATEADD(dimtime[Date], -1,QUARTER),"q")
Q = YEAR(Table1[Date]) &"Q" & FORMAT(Table1[Date], "q")
After that we can get a table like this:
For more information, please refer to the pbix as attached.
Regards,
Lydia
Based on my test, we can take the following steps to get the result that you want.
1. Enter the data and create a time table and create relationship between the two table based on dates.
2. To get the current and previous QTD, we can use the formulas to create a measure:
Current QTD := CALCULATE(SUM(Table1[Re]), FILTER(Table1, FORMAT(Table1[Date], "q")=FORMAT(NOW(),"q")))
Previous QTD := CALCULATE(SUM(Table1[Re]), FILTER(Table1, FORMAT(DATEADD(dimtime[Date],1,QUARTER), "q")=FORMAT(NOW(),"q")))
3. Also we can create some columns for reference if necessary.
previous quarter = YEAR(DATEADD(dimtime[Date], -1,QUARTER))& "Q" & FORMAT(DATEADD(dimtime[Date], -1,QUARTER),"q")
Q = YEAR(Table1[Date]) &"Q" & FORMAT(Table1[Date], "q")
After that we can get a table like this:
For more information, please refer to the pbix as attached.
Regards,
Lydia
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.