Forum Discussion

setiawanan9's avatar
setiawanan9
Frequent Visitor
4 years ago
Solved

DAX Calculate without dependency to selected filter

Hi everyone,   I'm trying to figure out how to solve case like this : A. Table to show total sales each customer B. Table to show total sales each month based on customer selected from table A an...
  • v-kkf-msft's avatar
    v-kkf-msft
    4 years ago

    Hi setiawanan9 ,

     

    Please try the following formula:

     

    Measure = 
    CALCULATE (
        SUM ( INV1[Sales] ),
        FILTER (
            ALL ( INV1 ), 
            FORMAT ( INV1[Date], "mmmm" ) = MAX ( 'Calendar'[Month] )
        )
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.