Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello!
Looking to create a measure that returns the earliest date that appears multiple times in an event table. I am struggling to filter the event table in a way where only rows where the date has shown up multiple times remain. The following has not worked properly for me:
Solved! Go to Solution.
Hi,
Would you please tell me if you want to calcaulate the earliest install date for each device?
Try this:
Install Date =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER ( ALL ( 'Table'[Date] ), CALCULATE ( COUNT ( 'Table'[Date] ) > 1 ) )
)
Best Regards,
Dedmon Dai
Hi @Anonymous ,
Would you please try the following measure:
Earliest Date =
CALCULATE (
MIN ( 'Event Table'[Date] ),
FILTER (
ALL ( 'Event Table' ),
CALCULATE ( COUNT ( 'Event Table'[Date] ) > 1 )
)
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @v-deddai1-msft ,
This measure returned a date that is not the correct date (earliest date with a count of >1) and is not the earliest date with a count of 1 or greater.
I should have included this to begin... 'I am trying to find the earliest date with a count of >1 for several different devices. I have a table visual were column 1 has all the devices and column 2 is the "Install Date" measure. When I use what you have proposed:
Hi,
Would you please tell me if you want to calcaulate the earliest install date for each device?
Try this:
Install Date =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER ( ALL ( 'Table'[Date] ), CALCULATE ( COUNT ( 'Table'[Date] ) > 1 ) )
)
Best Regards,
Dedmon Dai
Thank you, this worked!!
Pjm
Hi @Anonymous
Try this Measure
Measure =
CALCULATE(
MIN( 'Table'[Date] ),
FILTER(
ALL( 'Table'[Date] ),
COUNTROWS( 'Table' ) > 1
)
)
Hi @Mariusz
Unfortunately this measure still gave the earliest date even if it only appears once in the table.
Any other thoughts?
Pjm
User | Count |
---|---|
128 | |
108 | |
99 | |
64 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |