cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Previous Quarter

1.PNG

 

How can I write a DAX formula to calculate the sum of the previous quarter revenue and multiply that total by 4?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

 

Try create a DAX column with this formula:

previousquarter =
CALCULATE (
    SUM ( 'Table'[Revenue] );
    ALL ( 'Table' );
    PREVIOUSQUARTER ( 'Table'[Revenue Date] )
)
    * 4

Regards.

Note: If you get a syntax error it's probably because of the semicolons instead of commas, Power BI has the two options to delimit DAX, change semicolons by commas and it should work.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

 

Try create a DAX column with this formula:

previousquarter =
CALCULATE (
    SUM ( 'Table'[Revenue] );
    ALL ( 'Table' );
    PREVIOUSQUARTER ( 'Table'[Revenue Date] )
)
    * 4

Regards.

Note: If you get a syntax error it's probably because of the semicolons instead of commas, Power BI has the two options to delimit DAX, change semicolons by commas and it should work.

View solution in original post

Hi @Anonymous,

 

I am getting nothing by using this formula. Can you explain to me why I am getting nothing?

 

Thanks, 

Arvind 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.