Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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?
Solved! Go to Solution.
Hi @Anonymous ,
Due to I don't know your data model, here I will create a sample to have a test.
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.
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.
Hi @Anonymous ,
Due to I don't know your data model, here I will create a sample to have a test.
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.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |