Forum Discussion

gauravnarchal's avatar
gauravnarchal
Post Prodigy
6 years ago
Solved

DAX ALL Formula

How can I add "ALL formula" in the below measure so that it ignores all filters in the visual?   First Sales Date in Selected = MAXX( TOPN( 1, SUMMARIZE(ARInvoices,ARInvoices[InvoiceDate],ARIn...
  • v-juanli-msft's avatar
    6 years ago

    Hi gauravnarchal 

    Create measures

    Measure =
    MINX (
        TOPN (
            1,
            FILTER (
                ALL ( 'Table 2' ),
                'Table 2'[customer no] = MAX ( 'Table 2'[customer no] )
            ),
            CALCULATE ( MIN ( [invoice date] ) ), ASC
        ),
        [invoice date]
    )
    

    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.