Forum Discussion
Creating Timestamp and Visualization
- Anonymous2 years ago
Hi AliRashed2024 ,
I have assumed some data, 'Table' surface system-generated data and 'Table2' represents activities that do not exist in the system.
Please follow these steps:
1.Appending Two Tables Together Using Power Query
2.Use the following DAX expression to create a table named 'Time'
Time = ADDCOLUMNS(GENERATESERIES(TIME(9,0,0),TIME(17,0,0),TIME(1,0,0)),"Column",HOUR([Value])*100+MINUTE([Value])*10+MINUTE([Value]))2.Use the following DAX expression to create columns in 'Table'
Column1 = IF(ISBLANK([StartTime]),900,HOUR([StartTime]) *100 + MINUTE([StartTime])*10 + SECOND([StartTime]))Column2 = IF(ISBLANK([EndTime]),1700,HOUR([EndTime]) *100 + MINUTE([EndTime])*10 + SECOND([EndTime]))3.Use the following DAX expression to create a measure
Measure = VAR _a = SELECTEDVALUE('Time'[Column]) VAR _b = CONCATENATEX(FILTER('Table','Table'[StartTime] <= _a && 'Table'[Column2] >= _a ) ,'Table'[Activity]," "&",") RETURN _b4.Final output
Hi AliRashed2024 ,
I have assumed some data, 'Table' surface system-generated data and 'Table2' represents activities that do not exist in the system.
Please follow these steps:
1.Appending Two Tables Together Using Power Query
2.Use the following DAX expression to create a table named 'Time'
Time = ADDCOLUMNS(GENERATESERIES(TIME(9,0,0),TIME(17,0,0),TIME(1,0,0)),"Column",HOUR([Value])*100+MINUTE([Value])*10+MINUTE([Value]))
2.Use the following DAX expression to create columns in 'Table'
Column1 = IF(ISBLANK([StartTime]),900,HOUR([StartTime]) *100 + MINUTE([StartTime])*10 + SECOND([StartTime]))Column2 = IF(ISBLANK([EndTime]),1700,HOUR([EndTime]) *100 + MINUTE([EndTime])*10 + SECOND([EndTime]))
3.Use the following DAX expression to create a measure
Measure =
VAR _a = SELECTEDVALUE('Time'[Column])
VAR _b = CONCATENATEX(FILTER('Table','Table'[StartTime] <= _a && 'Table'[Column2] >= _a ) ,'Table'[Activity]," "&",")
RETURN _b
4.Final output