Forum Discussion

wad11656's avatar
wad11656
Icon for Advocate I rankAdvocate I
4 years ago
Solved

ALLSELECTED: Selecting the *wrong* column filter gives the *correct* result? (in CALCULATE function)

This formula gives the following result: Furniture Total = CALCULATE([OPC Total], ALLSELECTED('MyTable'[OPC])) Furniture Total = Add line items with matching Company names: Company1: $32,494...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi wad11656 ,

    ALLSELECTED removes filter from the selected column of a table.

    In your 1st example you removed filter of the [OPC] column, hence only the company filter was active.

    In your 2nd example you removed filter of the [Company] column, hence only the OPC filter was active

    Hope that helps

    BR