Forum Discussion

t055169b's avatar
t055169b
Frequent Visitor
3 years ago
Solved

ALLEXCEPT function not working properly

Hello everyone, hope someone can help me on this.   I'm adding an ALLEXCEPT function to calculate a percentage of a column. It does what I want except for the Date dimension.    Relationshi...
  • t055169b's avatar
    t055169b
    3 years ago

    Even putting it as you said I couldn't achieve what I want. But I found another way to do it. I used the ALLSELECTED() function like this: 

     
    CALCULATE([NSB ACT], ALLSELECTED('TB_AFO_ACT+AOP'[visual dimension1],'TB_AFO_ACT+AOP'[visual dimension2],'TB_AFO_ACT+AOP'[visual dimension3],'TB_AFO_ACT+AOP'[visual dimension4]))
     
    I just selected all the dimensions in table visual rows and it worked. It was always getting the correct total.

     

    The only limitation is that you must use only a single table to filter, in this case TB AFO ACT+AOP. You can use the RELATED() for this issue. 
     
    Thank you anyway!¡