Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there
I've imported an excel file into PBI which has a date column and a value column. Simple. The date range varies for example it holds
01/01/2020, 02/01/2020, 03/01/2020, 04/01/2020, 12/01/2020. Random.
I need to calculate the variance between the consecutive dates.
How?
Jemma
Solved! Go to Solution.
Hi @Anonymous ,
I am not clear "consecutive dates" ,did you mean two date rows in table or "consecutive calendar dates"? You could refer to my sample for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I am not clear "consecutive dates" ,did you mean two date rows in table or "consecutive calendar dates"? You could refer to my sample for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , This should give you data for last non-continuous date
Last Day Non Continous = CALCULATE(sum('order'[Qty]),filter(all('Date'),'Date'[Date] =MAXX(FILTER(all('Date'),'Date'[Date]<max('Date'[Date])),order['Date'])))
This Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
you can use these and subtract
@Anonymous
please share the sample data and the expected output.
Proud to be a Super User!
User | Count |
---|---|
73 | |
72 | |
39 | |
25 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
43 | |
42 |