Forum Discussion
Calculate Time Statisctics
- 8 years ago
Hi PrachiD,
Based on your description, you want to achieve max time in a day filtered by column [begin_date], right?
To achieve your requirement, please create a calculate column and use DAX formula below:
Expected Column =
var maxTime = CALCULATE(MAX(data[time]), FILTER(ALL(data), data[emp_id] = EARLIER(data[emp_id]) && data[begin_date] = EARLIER(data[begin_date])))
return
IF(data[time] = maxTime, data[Time_Statistics_out], BLANK())
The result is like below and you can refer to PBIX file here:
https://www.dropbox.com/s/kvfd4rwa8paenz9/For%20PrachiD.pbix?dl=0
Best Regards,
Jimmy Tao
Using this I m getting one value for all the date
I should get the values date by date
It is Not getting filter by begin date
for some field I m not getting values
Expected:-
for some field I m not getting values
Hi PrachiD
I get results like this...Only the last out time is highlighted...
Do you need it in a different way
Could you share your file ?