Forum Discussion
Calculate date difference between different meeting types which are stored in the same column
Hi Elisa112 ,
Here is my test data:
Create a new table called SummaryTable
SummaryTable =
SUMMARIZECOLUMNS (
'MeetingTable'[UserID],
"DaysBetweenIntroAndAssess", DATEDIFF (
CALCULATE ( MIN ( 'MeetingTable'[Meeting date] ) ),
CALCULATE (
MIN ( 'MeetingTable'[Meeting date] ),
'MeetingTable'[Meeting Type] = "Assess"
&& 'MeetingTable'[Status] = "Attended"
),
DAY
),
"DaysBetweenIntroAndSupport", DATEDIFF (
CALCULATE ( MIN ( 'MeetingTable'[Meeting date] ) ),
CALCULATE (
MIN ( 'MeetingTable'[Meeting date] ),
'MeetingTable'[Meeting Type] = "Support"
&& 'MeetingTable'[Status] = "Attended"
),
DAY
)
)
Final output
Best regards
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Elisa1122 years ago
Helper V
Hi Anonymous
Tried this and my summary table is coming back completely blank, any idea why that would be?
I feel I am missing something so obvious
thanks in advance
- Anonymous2 years agoNot applicable
Hi Elisa112 ,
You can refer to the pbix file I provided. Regarding why there are blank data, you can go and check your raw data to see if there are inconsistencies with the matching fields, for example, if there are spaces before and after the raw data that would cause a blank summary to appearPlease check these fields for any discrepancies, especially spaces.
Best regards
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly