Forum Discussion
Luukvv93
Helper II
7 years agoNeed your help on a calculated column
Hi, I created a calculated column with the following formula ShiftStart =
VAR MinMaxDatumTijd = MIN(VirtualShift[MaxDatumTijd])
RETURN
SWITCH( TRUE();
VirtualShift[Shift] = "D"; VirtualShift...
- 7 years ago
Hi Luukvv93
Create a column
Column = SWITCH ( TRUE (), Sheet5[Shift] = "D", Sheet5[MinDatumTijd], Sheet5[Shift] = "A", CALCULATE ( MIN ( Sheet5[MaxDatumTijd] ), FILTER ( ALLEXCEPT ( Sheet5, Sheet5[Shiftdatum] ), Sheet5[Shift] = "D" ) ) )Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
7 years agoHmm, copying and pasting that data didn't work very well, it all came out in a single column. But, what you want is EARLIER to grab the D row. See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586
Pretty sure you are doing something fairly similar to that article in essense.
Luukvv93
Helper II
7 years ago