Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello community,
I want to create a new column with variables. The conditions are:
- if initial date = date then the result is oil but it has to fill the previous dates with the same oil price.
| date | oil | initial | final result | |
| 01/01/2018 | 0,6754 | 03/01/2018 | 0,5377 | |
| 02/01/2018 | 0,0351 | 03/01/2018 | 0,5377 | |
| 03/01/2018 | 0,5377 | 03/01/2018 | 0,5377 | |
| 04/01/2018 | 0,5231 | 07/01/2018 | 0,5112 | |
| 05/01/2018 | 0,6754 | 07/01/2018 | 0,5112 | |
| 06/01/2018 | 0,8789 | 07/01/2018 | 0,5112 | |
| 07/01/2018 | 0,5112 | 07/01/2018 | 0,5112 | |
| 08/01/2018 | 0,2651 | 11/01/2018 | 0,6754 | |
| 09/01/2018 | 0,6754 | 11/01/2018 | 0,6754 | |
| 10/01/2018 | 0,1906 | 11/01/2018 | 0,6754 | |
| 11/01/2018 | 0,6754 | 11/01/2018 | 0,6754 |
Many thanks
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file, that is for creating a new column.
Hi,
Please check the below picture and the attached pbix file, that is for creating a new column.
many thanks JiHwan,
Cheers
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 44 |