Forum Discussion

zguan0923's avatar
zguan0923
Frequent Visitor
9 years ago

sumif and filter on two different tables

Hello!

 

I am new to Power BI and would really appreciate you help on the following question:

 

I have two tables: Registration Status (Approved, Declined, In Process), and Pipeline (Projected Sales Amount). I am looking for sum of sales amount for each registration status. Thank you!

 

Registration Status 
Opp IDRegistration Status
123456Approved 
234567Approved 
345678Approved 
456789Approved 
654321Declined
765432Declined
876543In Process 
987654In Process 

 

Pipeline 
Opp IDAmount
123456500
234567600
345678700
456789800
654321900
765432100
876543300
987654200

8 Replies

  • WHen I tried using the same data, PowerBI automatically detected the relationships between these two tables.  The resulting table provides what you want (right hand side)

     

     

    • zguan0923's avatar
      zguan0923
      Frequent Visitor

      Thank you Ceebu. I realized what the problem was. The amount field wasn't a direct value in the pipeline table, but a key measure based on a calculation of two fields in the pipeline table. It seems I can't manage the relationships between Registration Table and Key Measures, and when I try to drag amount to different registration status, the amount shows as a lump sum value of all the registration status rather than individual break down of each status. 

       

      What should I do in this case?  Thank you!

      • ceebu's avatar
        ceebu
        Icon for Advocate I rankAdvocate I

        I am not able to understand the requirement clearly - If you could securely share the sample data, I can try to find a way.