Getting counts from dynamic table to fill a static table

Brass Contributor

I have attached a basic demo of my question, but can't show all that's going as I'm using MS forms to gather data.

 

In the real spreadsheet the below is being sourced from a Power queried copy of an MS form spreadsheet. (Done this way to keep the original data intact, but also because I have a static spreadsheet that I want to link.)

 

I have 2 problems, at least. 

 

davidmaddock54_0-1643248402170.png

1. Obviously, as more responses come in, the table will grow, and every time I refresh the data, the count/total column at the bottom resets/data disappears. The totals column at the bottom is easy enough to add in the sheet, and it gives you the drop downs, but I'm wondering if there's a way to add a totals row in PQ itself. The count option in there creates a new list/table.

 

2. Because the rows will expand, it makes it hard to reference the totals column to use in the master list.

davidmaddock54_1-1643248805829.png

There's other columns etc, but fundamentally, I want the total count of sessions and Did Not Attends to update automatically in the static list. (Names etc in that list are manually entered, it's the source of info for most other columns. 

 

I've toyed with setting up separate pivot tables to try and keep the totals static, and I know I can do a static ref for a particular column, but it's doing that while also separating the totals by client name and allowing for new clients to appear that's killing me.

 

Any thoughts appreciated. (I'm not married to any particular solution, I like forms generally as a workflow, but if forms makes things harder they can go.)

 

I want the solution to not involve any manual work from an end user, if possible.

 

Thanks in advance if you have any ideas.

5 Replies
Ooh, may have found the answer in PQ. Grouping allows for some cool counts. I think it'll solve everything but adding the formula to new names on the master list.
i think best way is to make pivot table for this table, and put the client name in the rows label & then "did not attend" in your values label
if you dont want to use pivot tables, try to use countif function, countif("range(did not attend"),"client name") , hope this helps
I could be overthinking it and missing stuff, but those options don't quite get me what I want. The master table will also get filtered, or put in alphabetic order, so there's no hard cell references to tie too. I have used PQ count to get me a table each for Session and DNA count with the name next 2 it. Trying to think how Index and Match might work using Table references. they always break my brain.
Watched a vid using dget, seemed like the solution, but I keep getting NAME? error. Criteria name is Client_Name in both, can't work out why it might not pick it up.
So Index and Match is fine. Working now. Doesn't need the last argument. You can all wave if you knew this already. ;)