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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Sum by Quarter

I currently have a formula that calculates the last 3 months of revenue and it looks like this:

 

1.PNG

 

This works as intended but I now need to make some modifications. How can I modify this (or create a new) formula that will:

 

 Display the last COMPLETED quarter of revenue. This should update as soon as one quarter ends to show the previous quarter's revenue sum multipled by 4. So as of right now, the formula should return all Q1 revenue multipled by 4. Once July hits and Q3 begins, it should be calculating all Q2 revenue multiplied by 4.Thanks!

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

“the formula should return all Q1 revenue multipled by 4. Once July hits and Q3 begins, it should be calculating all Q2 revenue multiplied by 4”

Do you mean calculate three months of all quarter for revenue?

I make a test as follows, "measure" uses your formula, and "measure2" uses the following formula.

Measure 2 =
CALCULATE (
    SUM ( Sheet1[value] ),
    FILTER (
        ALL ( Sheet1 ),
        ( Sheet1[date] <= MAX ( [date] ) )
            && MONTH ( Sheet1[date] ) = MONTH ( Sheet1[date] )
    )
)
    * 4

2.png

 

 

Best Regards

Maggie

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

“the formula should return all Q1 revenue multipled by 4. Once July hits and Q3 begins, it should be calculating all Q2 revenue multiplied by 4”

Do you mean calculate three months of all quarter for revenue?

I make a test as follows, "measure" uses your formula, and "measure2" uses the following formula.

Measure 2 =
CALCULATE (
    SUM ( Sheet1[value] ),
    FILTER (
        ALL ( Sheet1 ),
        ( Sheet1[date] <= MAX ( [date] ) )
            && MONTH ( Sheet1[date] ) = MONTH ( Sheet1[date] )
    )
)
    * 4

2.png

 

 

Best Regards

Maggie

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.