Forum Discussion
Creating a Non-Volatile TODAY() function in New Column
- 4 years ago
Hi bjpowell93 ,
No, power bi is sent query to data source to get data then calculate. If you refresh, it will refresh the whole data, so the calculation result won't be saved. It means you can not keep the date created by today()
You can try add the date in original data source or maybe you can try python script in power bi query, run python script to save the date then power bi get data from the python script result.
Run Python Scripts in Power BI Desktop - Power BI | Microsoft Docs
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 4 years ago
Hi bjpowell93 ,
Fill the date with the formula in the power query.
Add custom column to fill which row has no date.
Then the resulting result is rewritten to the file. I use the .csv file format here.
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
Hi bjpowell93 ,
No, power bi is sent query to data source to get data then calculate. If you refresh, it will refresh the whole data, so the calculation result won't be saved. It means you can not keep the date created by today()
You can try add the date in original data source or maybe you can try python script in power bi query, run python script to save the date then power bi get data from the python script result.
Run Python Scripts in Power BI Desktop - Power BI | Microsoft Docs
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- bjpowell934 years agoFrequent Visitor
Hi v-chenwuz-msft,
Thanks for these ideas - do you know what the Python script would look like?
Using Python isn't something I'vr done before.
Thanks!
- v-chenwuz-msft4 years agoCommunity Support
Hi bjpowell93 ,
Fill the date with the formula in the power query.
Add custom column to fill which row has no date.
Then the resulting result is rewritten to the file. I use the .csv file format here.
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu