Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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]))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |