Forum Discussion
Mamoun_issa
6 years agoFrequent Visitor
Tables with Two Key
Hello, I Have two tables the first includes the Revenue Details and the other one claims, the tables looks something similar to the below, Medical Record No Visit Number Visit Date Name...
az38
6 years agoCommunity Champion
Hi Mamoun_issa
you can add a measure to your Revenue Details table
Paid Amount =
CALCULATE(SUM('Claims Details'[Payment Amount]);
FILTER(ALL('Claims Details');
'Claims Details'[Claim ID]=SELECTEDVALUE('Revenue Details'[Claim ID]) || 'Claims Details'[Claim ID]=SELECTEDVALUE('Revenue Details'[Phamracy Claim ID])
)
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
- Mamoun_issa6 years agoFrequent Visitor
az38 Thank you for your response , but unfortunatly this did not work out since in the revenue details the claim ID and Pharmacy Claim ID are in the same row, so it took only the first expression (i.e. Claim ID)
- az386 years agoCommunity Champion
Hi Mamoun_issa
i don't understand. it works perfect on your data sample
please, extend your mention, what do you mean "first expression"?
do not hesitate to give a kudo to useful posts and mark solutions as solution
- Mamoun_issa6 years agoFrequent Visitor
az38 The Formula i made was like this :
Formula = CALCULATE(SUM(ERAClaim[Activity.PaymentAmount]),FILTER(ALL(ERAClaim),ERAClaim[ID]=SELECTEDVALUE(ACR[PHA_CLAIM_ID]) || ERAClaim[ID]=SELECTEDVALUE(ACR[CLAIM_ID])))However, the result i got are as follow, it takes only the sum of the first claim id