Forum Discussion

mhr08004's avatar
mhr08004
Frequent Visitor
1 year ago
Solved

Sum measure based on Related Table

Hello all - Please help with this simple issue

 

Table 1: Mapping Table of City to State

Table 2: Contains Sales, City and Month

 

I have linked these table together via the City fields via a one-to-many relationship.

 

I need to make a matrix that sums based State, however I cannot make this work. It sum all values instead of by state.

 

Months in the columns, State in the Rows, Sales values in the values.

 

 

Thank you

5 Replies

    • mhr08004's avatar
      mhr08004
      Frequent Visitor

      Yes. This works... You have made it clear my data is the issue and not my modeling skill. Thank you!

       

      Any thoughts on why my real data would sum ALL OF JAN no matter the state of the sale in every row?

      • ryan_mayu's avatar
        ryan_mayu
        Icon for Super User rankSuper User

        have you created the correct relationshipt between two tables? could you pls share your pbix file?