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
casea14
Regular Visitor

DAX FUNCTION HELP

DAX Function Help.PNG

 

I have data that looks something like the above, I want to create the column highlighted in yellow with a DAX function. The value that would be returned would be the prior quarter revenue (which in most cases is not on the row directly above it).

 

On thoughts on how I could accomplish this?

 

Thank you!

 

 

2 REPLIES 2
Hasan
Resolver I
Resolver I

Can you try this formula

Prev = CALCULATE(SUM(Table1[Revenue]),SAMEPERIODLASTYEAR(Table1[Qtr EndDate]))

Make sure that QtrEndDate column is a date column

@Hasan thanks for your reply..I used the same formula you provided below except instead of the SAMEPERIODLASTYEAR I used the PREVIOUSQUARTER function and no results are returned. I dont get an error but the column is blank. (It's prior quarter I am looking for and not same period last year). Your formula results in a blank column as well (no errors though).

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.