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.
Help to create new column measure to map values from previous month values based on employee ID from the same table.
Sample
ID | Month | Met Status | Current Month-1 Met Status | Current Month-2 Met Status |
A1 | 6/1/2025 | Met | ||
A2 | 6/1/2025 | Met | ||
A3 | 5/1/2025 | Not Met | ||
A1 | 5/1/2025 | Met | ||
A2 | 4/1/2025 | Met | ||
A3 | 4/1/2025 | Met |
in the above data, i have map to 'Current Month-1 Met Status ' based on ID,
Ex. ID A1, and Month 6/1/2025, Current status, Met, for Current Month-1, it has fetch details from the ID A1 last appeared month, A1 previous month status also, MET. That value to appeared on respective column
ID | Month | Met Status | Current Month-1 Met Status | Current Month-2 Met Status |
A1 | 6/1/2025 | Met | Met | Blank |
A2 | 6/1/2025 | Met | Blank | Met |
A3 | 5/1/2025 | Not Met | ||
A1 | 5/1/2025 | Met | ||
A2 | 4/1/2025 | Met | ||
A3 | 4/1/2025 | Met |
ID | Month | Met Status | Current Month-1 Met Status | Current Month-2 Met Status |
A1 | 6/1/2025 | Met | Met | Blank |
A2 | 6/1/2025 | Met | Blank | Met |
A3 | 5/1/2025 | Not Met | Met | Met |
A1 | 5/1/2025 | Met | Blank | Blank |
A2 | 4/1/2025 | Met | Blank | Blank |
A3 | 4/1/2025 | Met | Blank | Blank |
i have tried with below measure but it is giving me proper values
Hi @ssk_1984
Create calculated column using below dax.
If this answers your questions, kindly accept it as a solution and give kudos.
Create a date table with the code below:
DateTable = CALENDARAUTO()
You will need to create a relationship between this table and your Month column.
Then create a measure with this code:
VAR _id = SELECTEDVALUE( Table[ID] )
RETURN
CALCULATE( SELECTEDVALUE( Table[Met Status] ), DATEADD( DateTable[Date], -1, MONTH ), KEEPFILTERS( Table[ID] = _id ))
Just replace Table with your table name.
If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!
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 |
---|---|
72 | |
71 | |
55 | |
37 | |
31 |
User | Count |
---|---|
89 | |
62 | |
61 | |
49 | |
45 |