Forum Discussion

razieh12's avatar
razieh12
Frequent Visitor
3 years ago
Solved

ALL function is not working in drill down

Hello ,  I want to visulaize data in matrix. the rows of matrix are respectely: Provice, City. the column is months which are 2 months the value of the matrix is the below measure:    CALCULATE...
  • Alef_Ricardo_'s avatar
    3 years ago

    Another possible solution could be to use the ALLEXCEPT function instead of the ALL function. The ALLEXCEPT function removes all filters from a table except for filters on specified columns. You can try using this function to remove all filters from your sale table except for filters on the Province and City columns.

    Here’s an example of how you could use the ALLEXCEPT function in your measure:

    CALCULATE(
    SUM('sale'[quantity]),
    ALLEXCEPT('sale', 'sale'[Province], 'sale'[City])
    )

    I hope this helps! Let me know if you have any further questions. 😊