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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RichOB
Post Patron
Post Patron

Calculating previous quarter figure in new column

Hi, how can I get the previous quarter count in a new measure to then calculate the % change from the previous FQ, please? For example, I need a new column called Previous_Count where FY2024 FQ4 shows 119.

 

This is what I currently have, along with a calendar with the financial year and financial quarter columns:

 

SccountCal.pngSCcount.png

 

Thanks for your help

 

 

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @RichOB ,

You can add an index column like-

vsdhruv_0-1753857132696.png

Then use this DAX in your calculated column-

Previous = 
CALCULATE(
    MAX('Table'[Count]),
    FILTER(
        'Table',
        'Table'[Index] = EARLIER('Table'[Index],1) -1
    )
)


You will get the previous count.

vsdhruv_1-1753857287162.png

Attached file for reference.

Hope this helps!

View solution in original post

5 REPLIES 5
v-sdhruv
Community Support
Community Support

Hi @RichOB ,

Since we didnt hear back, we would be closing this thread.
If you need any assistance, feel free to reach out by creating a new post.

Thank you

v-sdhruv
Community Support
Community Support

Hi @RichOB ,

Just wanted to check if you had the opportunity to review the suggestions provided and whether that helped to resolve the issue?

Thank You

v-sdhruv
Community Support
Community Support

Hi @RichOB ,
Just wanted to check if you had the opportunity to review the suggestions provided and whether that helped to resolve the issue?

Thank You

v-sdhruv
Community Support
Community Support

Hi @RichOB ,

You can add an index column like-

vsdhruv_0-1753857132696.png

Then use this DAX in your calculated column-

Previous = 
CALCULATE(
    MAX('Table'[Count]),
    FILTER(
        'Table',
        'Table'[Index] = EARLIER('Table'[Index],1) -1
    )
)


You will get the previous count.

vsdhruv_1-1753857287162.png

Attached file for reference.

Hope this helps!

Jihwan_Kim
Super User
Super User

Hi,

One of ways is to use Visual Calculation, and use PREVIOUS function in the formula bar.

Please check the link down below.

 

Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors