Forum Discussion

ReadTheIron's avatar
ReadTheIron
Helper III
4 years ago
Solved

Filtering a table on multiple criteria

I have two related tables, AssetTable and IncidentTable. I am trying to get a count of entries in FailureTable that satisfy multiple criteria. Specifically, I want to create a calculated column to co...
  • Ashish_Mathur's avatar
    4 years ago

    Hi,

    This calculated column formula will work

    =coalesce(CALCULATE(COUNTROWS(Incident),FILTER(Incident,Incident[Asset]=EARLIER(Asset[Asset])&&Incident[IncidentDate]>EARLIER(Asset[RepairDate])&&Incident[Cause]<>"snow")),0)

    Hope this helps.