Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
please, can you help me. I have simple data table and I need to add Calculated coloum Value previous year:
Please, anyone does know DAX formula?
Thank you
Solved! Go to Solution.
Hi @Lucie_C,
You could create the calculated column with the formula below.
Column =
CALCULATE (
MAX ( 'Table1'[Value] ),
FILTER (
'Table1',
YEAR ( 'Table1'[Date] )
= YEAR ( EARLIER ( 'Table1'[Date] ) ) - 1
&& [Company] = EARLIER ( Table1[Company] )
)
)
Here is your desired output.
Hope this can help you!
Best Regards,
Cherry
You could also use the formula below:
Coloumn = LOOKUPVALUE( Table1[Value] ; Table1[Company] ; Table1[Company] ; Table1[Date] ; SAMEPERIODLASTYEAR( Table1[Date] ) )
Hi @Lucie_C,
You could create the calculated column with the formula below.
Column =
CALCULATE (
MAX ( 'Table1'[Value] ),
FILTER (
'Table1',
YEAR ( 'Table1'[Date] )
= YEAR ( EARLIER ( 'Table1'[Date] ) ) - 1
&& [Company] = EARLIER ( Table1[Company] )
)
)
Here is your desired output.
Hope this can help you!
Best Regards,
Cherry
Hello,
I have the same case but with a second date column called "As of date", which will be selected as a filter in the visual.
How can I expand the formula to include that second date?
Thank you!
Thank you 🙂
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |