Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
How do you calculate the date difference between the first date in one column and the last date in another column for unique values ?
Solved! Go to Solution.
Hi @Anonymous,
For a calculated column, please refer to:
diff = DATEDIFF(MIN(table2[ColumnA]),MAX(table2[ColumnB]),DAY)
For a calculated measure, please refer to:
diff measure = DATEDIFF(CALCULATE(MIN(table2[ColumnA]),ALL(table2)),CALCULATE(MAX(table2[ColumnB]),ALL(table2)),DAY)
Best regards,
Yuliana Gu
Hi @Anonymous,
For a calculated column, please refer to:
diff = DATEDIFF(MIN(table2[ColumnA]),MAX(table2[ColumnB]),DAY)
For a calculated measure, please refer to:
diff measure = DATEDIFF(CALCULATE(MIN(table2[ColumnA]),ALL(table2)),CALCULATE(MAX(table2[ColumnB]),ALL(table2)),DAY)
Best regards,
Yuliana Gu
User | Count |
---|---|
102 | |
90 | |
80 | |
71 | |
70 |
User | Count |
---|---|
114 | |
100 | |
97 | |
72 | |
71 |