Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |