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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Difference in percentage points between value for last month and the month before?

Greetings. 

I have two types of compliance percentages (Contractcompliance and Purchasing compliance) for each month.

 

I need to calculate the difference between last months compliance (both types) and the month before. 

Last month is always the latest set of data. (Data is loaded once a month).

 

I need the difference displayed in percentage points, so if it goes from 80,0 to 81,0, the difference would show + 1,0.

 

Is this possible and if so, how?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Due to I don't know your data model, here I will create a sample to have a test.

vrzhoumsft_1-1685352721765.png

Measure:

Contractcompliance difference =
VAR _LASTMONTH =
    CALCULATE (
        SUM ( 'Table'[Contractcompliance] ),
        FILTER (
            'Table',
            'Table'[Date]
                IN CALENDAR ( EOMONTH ( TODAY (), -2 ) + 1, EOMONTH ( TODAY (), -1 ) )
        )
    )
VAR _BEFORE =
    CALCULATE (
        SUM ( 'Table'[Contractcompliance] ),
        FILTER (
            'Table',
            'Table'[Date]
                IN CALENDAR ( EOMONTH ( TODAY (), -3 ) + 1, EOMONTH ( TODAY (), -2 ) )
        )
    )
RETURN
    _LASTMONTH - _BEFORE

Result is as below.

vrzhoumsft_0-1685352707414.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Due to I don't know your data model, here I will create a sample to have a test.

vrzhoumsft_1-1685352721765.png

Measure:

Contractcompliance difference =
VAR _LASTMONTH =
    CALCULATE (
        SUM ( 'Table'[Contractcompliance] ),
        FILTER (
            'Table',
            'Table'[Date]
                IN CALENDAR ( EOMONTH ( TODAY (), -2 ) + 1, EOMONTH ( TODAY (), -1 ) )
        )
    )
VAR _BEFORE =
    CALCULATE (
        SUM ( 'Table'[Contractcompliance] ),
        FILTER (
            'Table',
            'Table'[Date]
                IN CALENDAR ( EOMONTH ( TODAY (), -3 ) + 1, EOMONTH ( TODAY (), -2 ) )
        )
    )
RETURN
    _LASTMONTH - _BEFORE

Result is as below.

vrzhoumsft_0-1685352707414.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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