Hi folks,
I am trying to calculate case duration (1 case consists of several tasks) and I amhaving issue with lookup function that should return the value with earlierst and also latest date. Example below:
I have 3 tables:
Table: DIM_DateTable (standard calculated date table)
Table: FACT_Cases with column:
Table: FACT_Tasks with columns:
I would need to calculate 2 columns in FACT_Case table with dates used in table FACT_Tasks:
Any help is much appreciated
IvanS
Solved! Go to Solution.
@IvanS , new columns
Case start = minx(filter(Fact, Case_id = earlier([Case ID]) , [Created Date])
Case Closed= Maxx(filter(Fact, Case_id = earlier([Case ID]) , [Close Date])
Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
@IvanS , new columns
Case start = minx(filter(Fact, Case_id = earlier([Case ID]) , [Created Date])
Case Closed= Maxx(filter(Fact, Case_id = earlier([Case ID]) , [Close Date])
Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
Thank you for prompt help. Worked like a charm! 🙂
User | Count |
---|---|
118 | |
63 | |
61 | |
41 | |
40 |
User | Count |
---|---|
118 | |
67 | |
65 | |
64 | |
50 |