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
Anonymous
Not applicable

Displaying sum of revenue for the same quarter weeks

Hi,
I have a an issue I can't figure out.
Here is a sample of my data:

Runicas_0-1706871292367.png

I need to create a measure, which would look at the last closed 4 quarters, and sum up the total revenue for the previous 13 quarter weeks (I show only 2 here).
So on 23 Q1 quarter week 5 I had 1 EUR,
Same quarter week for 23 Q2 I had 2 EUR, so on both rows the total should be 3 EUR as an example.
How do I do it?
Appreciate all the advice!

5 REPLIES 5
govindarajan_d
Super User
Super User

Hi @Anonymous ,

 

Can you try this? Please replace the Table[Revenue] and calendar[date] with the appropriate columns that you are using.

SumOfRevenueLast13Weeks = 
CALCULATE(
    SUM(Table[Revenue]),
    DATESINPERIOD(
        Calendar[Date],
        LASTDATE(Calendar[Date]),
        -13, 
        WEEK
    )
)


 

Anonymous
Not applicable

Thanks for your reply.
Unfortunately typical time intelligence does not work in this file, as it's using custom fical calendar.
Also, the "Week part" does not appear as an option for me, only YEAR, QUARTER, MONTH, DAY

 

Can you show me your fiscal calendar?

Anonymous
Not applicable

Unfortunately I can't share it. But if you can imagine, for year 2023 fiscal quarter week 1 would start on January 1st
for 2024 fiscal quarter week starts on 31st of December

Hi @Anonymous,

 

Can you give me an example of how your calendar table will look like and how you want the result to be? This will help me to better answer your question. 

 

Are Quarter Label and Quarter Week the only columns it has? We can try window function if those are the only two columns available. 

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.