Forum Discussion

ITManuel's avatar
ITManuel
Responsive Resident
3 years ago
Solved

Cannot understand why ALLEXCEPT not working

Hi,   I have the following data model:                             and the following report:                 "Invoiced" is a measure calculated in the AInvoiceFl...
  • Barthel's avatar
    Barthel
    3 years ago

    ITManuel 

    The ALLEXCEPT function removes only the filters from the table specified as the first argument (i.e. 'ProjectFilter'). Using ALLSELECTED (), where no table is specifically referenced, all inner filter context is removed (including the filters from the 'AInvoices' table). 

    I would avoid using ALLEXCEPT in measures anyway as much as possible. Please read this article for more information: https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/