Hi, hope this makes sense. But I have a list of claims that can have multiple release dates such as below:
Each claim might have an edit associated with it below:
I want to exclude edits where there are multiple claim releases and if any of those release dates are before 1/1/2020. So the results would be:
I am dealing with million + rows. If anyway to do this in power query, that would be preferrable. Thanks!
Solved! Go to Solution.
@parry2k Thanks, but its not dependent on the edit date. I want to exclude edits where there are multiple claim releases for one particular claim ID and if any of those release dates are before 1/1/2020. Hope that makes sense!
@parry2k So looking at the example below:
Claim A: I want to keep because there is only one claim A.
Claim B: I want to exclude because where is more than one claim B, and one of the release dates is before 1/1/2020.
Claim C: I want to keep because even though there is more than one claim C, both release dates are after 1/1/2020.
The edit date doesn't matter. Does that help?
Hi @PowerBI123456 ,
Create a calculated column as below:
Check = VAR _count=CALCULATE(COUNT('Table'[Claim]),FILTER('Table','Table'[Claim]=EARLIER('Table'[Claim]))) var _mindate=CALCULATE(MIN('Table'[Release]),FILTER('Table','Table'[Claim]=EARLIER('Table'[Claim]))) Return IF(_count>1&&_mindate<DATE(2020,1,1),"Yes","No")
Then create a measure as below:
Measure = LOOKUPVALUE('Table'[Check],'Table'[Claim],MAX('Table (2)'[Claim]),blank())
Then you will see:
Pls check the attachment for details.
Check out a full recap of the month!
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.