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, I'm trying to get the duration between the different decision types in order to visualize the total duration time per decision type, but also total duration inbetween eg. "WB1 to WB2" and "WB2 to WB3" etc.
The thing is that for each opportunity the user might jump between different decisions back and forth several times eg. from wb1 to wb2 and then back to wb1 and so on so a simple datediff will probably not work for this..
Any help appreciated!
Btw I'm connected using DirectQuery so not all functions will work with measures/calc columns.
@amitchandak hi, 4 days refers to the duration it has been in this particular stage/decision (decision d3) before changing to the next decision d4, therefore 4 days between decision dates.
The reason for the empty cells is because I havent though of a good way of displaying those. Most likely it would be the total days duration before the entire opportunity is closed(status = won/lost)
hope it makes sense.
@Anonymous , oh, I did check that diff is small date column with the next date.
Try a new column
new column =
var _min = minx(filter(table, [opportunity_id] = earlier([opportunity_id]) && [decisiondate] > earlier([decisiondate])),[decisiondate])
return
if(isblank(_min), blank(), datediff([decisiondate] ,_min, day))
@amitchandak I tried the code however several functions are not supported (minx, filter, earlier) since the report is using DirectQuery as connection type... is there any alternative to the code above which will be supported with DQ?
Thanks.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
8 | |
6 |