Forum Discussion

sakuragihana's avatar
sakuragihana
Icon for Helper IV rankHelper IV
3 years ago
Solved

Need help to sum value

Hello everyone, I have 2 table below :  Table 1 :    Table 2 :    I post a pibx in that link : https://drive.google.com/file/d/1v5l0TgW5xPf0o5IqxBqPHSJ59jM-fP-8/view?usp=share_link  ...
  • v-zhangti's avatar
    v-zhangti
    3 years ago

    Hi, sakuragihana 

     

    You can try the following methods.

    Lead Digital2 = 
    CALCULATE ( SUM ( 'Lead'[# Of Lead Digital] ),
        FILTER ( ALL ( Campus ), [Campus Name] = "Unspecified" ),
        FILTER ( ALL ( 'Lead' ),
            [Province Name] = SELECTEDVALUE ( Campus[Province Name] )
        )
    )+SUM('Lead'[# Of Lead Digital])
    Lead Direct2 = 
    CALCULATE ( SUM ( 'Lead'[# Of Lead Direct] ),
        FILTER ( ALL ( Campus ), [Campus Name] = "Unspecified" ),
        FILTER ( ALL ( 'Lead' ),
            [Province Name] = SELECTEDVALUE ( Campus[Province Name] )
        )
    )+SUM('Lead'[# Of Lead Direct])
    Lead Referral2 = SUM('Lead'[# of Lead Referral])
    Total Lead = [Lead Digital2]+[Lead Direct2]+[Lead Referral2]

    Is this the result you expect?

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.