Forum Discussion
Anonymous
9 years agoNot applicable
Reshape data
Hi there I got a dataset I need to reshape but I am not sure how to do so, I would like to use DAX to resolve this rather than M code. I got a computer log on data like this User Star...
- Anonymous9 years ago
Hi Anonymous,
You can take a look at below sample:
1. Source table.
RecordsTime list
2. Calculated column formula to calculate the count.
Count = COUNTAX(FILTER(ALL('SampleFile'),[StartTime]<=[Hour]&&[EndTime]>=[Hour]),[User])+0Resut table
Regards,
Xiaoxin Sheng
Phil_Seamark
9 years agoMicrosoft Employee
Hi Anonymous
Here is a DAX based solution that might be handy to build on. Just create a new table
Summary Table = SUMMARIZE(
FILTER(
CROSSJOIN('LogData','Time'),
[Hour] >= [Start Time]
&& [Hour] <= [End Time]),
[Hour],
"Count",COUNTROWS('LogData')
)