Forum Discussion

ddeutschman's avatar
ddeutschman
Helper I
9 years ago
Solved

Create a measure with value from another table

I need to create a measure which is the % of a sales goal for a salesperson.  The total sales for a person is a Measure in a transaction table - TotalTYDSales.  The sales goal, YTDPlan,  is in a separate table with no direct relationship with the transaction table.  The relationship is through the customer table.  I created a Measure in the transaction table called TotalYTDSales.  When I attempt to create a measue of PctYTDSales using the formula trantable[TotalYTDSales] / Plantable[YTDPlan], I get an error:  "A single value for a column 'YTDPlan in table 'PlanTable' cannot be determined.  This can happen when a measure formula refers to a column that contains many values without specifying an aggregation...."

 

How can I create this Measure?

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ddeutschman,

     

    Can you share some sample data to test?

     

    Regards,

    Xiaoxin Sheng

    • ddeutschman's avatar
      ddeutschman
      Helper I

      There is confidential information in the tables.  Is there some other method of troubleshooting the issue?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi ddeutschman,

         

        You can share the table structure and the measure formula, I will build some sample data to test.

         

        Regards,

        XIaoxin Sheng