Forum Discussion

hood2media's avatar
hood2media
Icon for Resolver II rankResolver II
3 years ago
Solved

multi-select criteria on timekey / auto-exist issue

hi again selimovd & othere,   kindly ref to our previous correspondences (here) & sample file (here).   as i'm still having issue with the multi-select criteria on timekey / auto-exist issues, ca...
  • hood2media's avatar
    hood2media
    3 years ago

    from another forum, i have found the solution for the dax as follows

    Arrivals-Actual =
    CALCULATE(
    COUNTROWS( JFK ),
    KEEPFILTERS(JFK[DEST] = "JFK"),
    KEEPFILTERS(JFK[ATA] <> BLANK())
    )

    Arrivals-Planned =
    CALCULATE(
    COUNTROWS( JFK ),
    KEEPFILTERS(JFK[DEST] = "JFK")
    )

    Departures-Actual =

    CALCULATE(
    COUNTROWS( JFK ),
    KEEPFILTERS(JFK[ORIGIN] = "JFK"),
    KEEPFILTERS(JFK[ATD] <> BLANK())
    )

    Departures-Planned =
    CALCULATE(
    COUNTROWS( JFK ),
    KEEPFILTERS(JFK[ORIGIN] = "JFK")
    )

     

    tks & kgrds.