Forum Discussion
Anonymous
6 years agoNot applicable
Count all values in table that share same value as current row in pivot table
I am trying to count all values in a table that have the same value as the current row. I have a duplication key and I want to see how many time this key shows up in the rest of...
- Anonymous6 years ago
have found a solution to this.
Step 1)
Go into main table query, remove any errors from the net value column (optional)
Create key from relevant columns
Close and load (to data model)
Step 2)
Duplicate this query
Use group by to get a row count using the key as the group category.
Close and load (to data model)
Build a relationship with the original table
Step 3) Use related to get the count column in order to use a 'downstream' variable in any Power Pivot Table (optional)
Thanks for your support peeps!
mahoneypat
Microsoft Employee
6 years agoGlad you figured it out. You could also do a merge in query editor and bring your count into the first table there, and then diable load on that query so you don't have that extra table in your model.
Regards,
Pat
Anonymous
6 years agoNot applicable
Great thanks for the tip!