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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Vaibhav3008
Frequent Visitor

Need help to calculate from previous cell

Hi,

I have Client, Period and Hours column. Need to calculate Net change and %Growth columns in power BI

Please help in achieving this.

Vaibhav3008_0-1688535726334.png

 

3 REPLIES 3
Alf94
Solution Supplier
Solution Supplier

Hi @Vaibhav3008 ,

 

Can you please try the following?

 

Net change = 
        IF(
            SELECTEDVALUE( 'Table'[Client] ) =
            CALCULATE(
                MIN( 'Table'[Client] ),
                OFFSET(
                    -1,
                    ORDERBY( 'Table'[Client], ASC, 'Table'[Period], ASC )
                )
            ),
            CALCULATE(
                MIN( 'Table'[Hours] ) -
                CALCULATE(
                    MIN( 'Table'[Hours] ),
                    OFFSET(
                        -1,
                        ORDERBY('Table'[Client], ASC, 'Table'[Period], ASC)
                    )
                )
            )
        )

 

% Growth = 
    DIVIDE(
        [Net change],
        CALCULATE(
            MIN( 'Table'[Hours] ),
            OFFSET(
                -1,
                ORDERBY( 'Table'[Client], ASC, 'Table'[Period], ASC )
            )
        )
    )

 

Result:

Alf94_0-1688542660084.png

If I answered your question, please mark my post as a solution.

 

Best,

Thanks for the reply,

I applied it to my table and it says : Parameter is not the correct type

Vaibhav3008_0-1688545459971.png

Can you please help resolve it

@Vaibhav3008,

 

This is ok. Just validate your measure and put it in a visual, it should work.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.