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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Vander1981
New Member

Dynamically display Revenue for CURRENT QTD in a table without dates - Measure

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

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Vander1981,

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:
1.PNG

For more information, please refer to the pbix as attached.



Regards,
Lydia

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@Vander1981,

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:
1.PNG

For more information, please refer to the pbix as attached.



Regards,
Lydia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors