The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |