Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Everyone,
I need to get datetime difference between current row and previous row.
Eg: 2nd row - 1st row, 3rd row - 2nd row, 4th row - 3rd row and so on
If the time difference is greater than 10 mins, It need to show an alert in the dashboard like a pop up or in card. My datetime column looks like
Solved! Go to Solution.
Hi @Anonymous
You may add an index column in query editor.Then you may create below measures to filter the table visual to pop up the value.For further,please refer to attached file.
Previous_DateTime = CALCULATE ( SUM ( Table2[DateTime] ), FILTER ( ALL ( Table2 ), Table2[Index] = MAX ( Table2[Index] ) - 1 ) )
Timediff = IF(NOT(ISBLANK([Previous_DateTime])),DATEDIFF([Previous_DateTime],SUM(Table2[DateTime]),MINUTE ))
Filter = IF([Timediff]>10,1)
Regards,
Cherie
Hi @Anonymous
You may add an index column in query editor.Then you may create below measures to filter the table visual to pop up the value.For further,please refer to attached file.
Previous_DateTime = CALCULATE ( SUM ( Table2[DateTime] ), FILTER ( ALL ( Table2 ), Table2[Index] = MAX ( Table2[Index] ) - 1 ) )
Timediff = IF(NOT(ISBLANK([Previous_DateTime])),DATEDIFF([Previous_DateTime],SUM(Table2[DateTime]),MINUTE ))
Filter = IF([Timediff]>10,1)
Regards,
Cherie
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |