Forum Discussion

janisCNH's avatar
janisCNH
Frequent Visitor
10 years ago
Solved

Problem with counts of Parts

Hello Community!   I have a problem by creating a report. The report should show how many types of one part is send to a dealer. Therefor, I have two tables. One table with the data in it and one t...
  • austinsense's avatar
    10 years ago

    Hi, great question. You're right - there's a much simpler way to accomplish this.

     

    1. You don't have to merge the queries - you can keep the queries separate and create a relationship between the two tables.

    2. Then you can write a measure that counts the number of parts, something like this ...

     

    // If you want to count the quantity of parts that have been sold
    PartsSold = SUM(Table[Quantity])

     

    3. On your report you can use the type name from your assignment table and your new measure - that should sum up the quantity of products sold for each type.