Hi, I wonder if you could help me.
I have a table from which I have created a power query. The result of the query (sorted by fruit and then seller) is e.g.
I want to use the query as a dynamic report, and have the total count of the different fruits stand out. I would like the query to look like:
The 2 problems I am having are:
1. Whilst I can use a count formula =COUNTIF(A2:A9, "Apple”) in the Total column (cell B2), Excel does not like the formula =COUNTIF(A2:A9, "Banana") in cell B7. Is there a better formula to use?
2. When I refresh the report, it all messes up. E.g.
Is there anyway to resolve this?
Many thanks in advance,
Zuv
I have a table from which I have created a power query. The result of the query (sorted by fruit and then seller) is e.g.
Fruit | Date | Seller |
Apple | 28/02/2018 | Ann |
Apple | 01/03/2018 | Ann |
Apple | 01/03/2018 | Bev |
Banana | 25/02/2018 | Ann |
Banana | 02/03/2018 | Bev |
I want to use the query as a dynamic report, and have the total count of the different fruits stand out. I would like the query to look like:
Fruit | Total | Date | Seller |
Apples | 3 | ||
Apple | 28/02/2018 | Ann | |
Apple | 01/03/2018 | Ann | |
Apple | 01/03/2018 | Bev | |
Bananas | 2 | ||
Banana | 25/02/2018 | Ann | |
Banana | 02/03/2018 | Bev |
The 2 problems I am having are:
1. Whilst I can use a count formula =COUNTIF(A2:A9, "Apple”) in the Total column (cell B2), Excel does not like the formula =COUNTIF(A2:A9, "Banana") in cell B7. Is there a better formula to use?
2. When I refresh the report, it all messes up. E.g.
Fruit | Totals | Date | Seller |
3 | |||
3 | |||
3 | |||
3 | |||
3 | |||
3 | |||
3 | |||
Apple | 3 | 28/02/2018 | Ann |
Apple | 2 | 01/03/2018 | Ann |
Apple | 1 | 01/03/2018 | Bev |
Banana | 0 | 25/02/2018 | Ann |
Banana | 0 | 02/03/2018 | Bev |
Is there anyway to resolve this?
Many thanks in advance,
Zuv