Forum Discussion

setis's avatar
setis
Post Partisan
6 years ago
Solved

Filter problem

Dear all,   I have 2 tables:   Detailed Cust_ Ledg_ Entry and Sales Invoice Line     Both tables are linked to a look up customer table. But there is not relationship between each...
  • Anonymous's avatar
    Anonymous
    6 years ago

    setis 

     

    I think you are linking the tables in a right way for calculation, try create a relationship for the two tables and alter a bit. 

    And your formula should work after remove "{ }": 

     

    Measure = 
    CALCULATE(
        SUM('Sales Invoice Line'[Amount w VAT]),
        FILTER(
            'Sales Invoice Line',
            'Sales Invoice Line'[Document No_] in VALUES('Detailed Cust_Ledg_entry'[Document No_])),
            FILTER('Detailed Cust_Ledg_entry','Detailed Cust_Ledg_entry'[Document Type]=2))

     


    Best regards 

    Paul Zheng