Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone, I have the following dataset
I am trying to get the first and last datetime stamp for each shift (there are multiple shifts A,B,C,D) per day.
I have tried this formula but it doesn't work due to duplicated rows in the trndte column.
Any ideas would be much appreciated
Thanks
Solved! Go to Solution.
Hi @georgec96
please try New Column
Last DateTime =
CALCULATE (
MAX ( 'Table'[trndte] ),
ALLEXCEPT ( 'Table', 'Table'[Shift], 'Table'[Date] )
)
Hi @georgec96
please try New Column
Last DateTime =
CALCULATE (
MAX ( 'Table'[trndte] ),
ALLEXCEPT ( 'Table', 'Table'[Shift], 'Table'[Date] )
)
Hi @georgec96,
Can you try
MinDate = CALCULATE ( MIN ( 'Table'[trndte]), ALLEXCEPT('Table'[Shift]))
MaxDate = CALCULATE ( MAX ( 'Table'[trndte]), ALLEXCEPT('Table'[Shift]))
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
7 |