Hi all I am struggling to calculate a date from a date minus number of days elapsed.
I want to calculate the date using today minus days elapsed from a column in the date so that I show a date in my visualisation rather than days elapsed!
Can someone help me out please! I can do it in Excel using Today() - cell ref but can’t get PowerBI to return the date I require!!
I am trying to calculate the Created date using today minus the Duration number which is already available in the data. I will then make a line chart. Does that give more clarity?
Difficult to know if this solution will work for you based on your exact scenario, but if you have both the date and the days you’d like to minus from the date in columns you can try the below.
Effective Date = SELECTEDVALUE( Test[Date] ) - SELECTEDVALUE( Test[DaystoMinus] )
Edit: Looks like we posted at the same time, let me know if this doesn’t solve your problem.
HI many thanks for the reply. I do not have a date to work from just the duration number. so cannot make this work I assume I need to create a new column but no idea as to the best approach