Closed heshaShawky closed 1 month ago
The query with the uncommented filter looks correct to me. I couldn't reproduce the issue like this:
Could you check the involved tables and data and try to come up with a minimal example based on the code I've posted where the query doesn't return the correct information?
Thanks for the reply. It's my bad. It did not save the category ID ( Null ) because of something I did previously and didn't notice.
Describe the bug
The code below should return the top outcome categories based on the transactions total for each one ( category )
I get all
0
( total ) if I uncomment the line on the subquery below which is not 0!So now I am getting the total for all not based on category so the results currently
cat1 - 100, cat2 - 100, cat 3 - 100
...etcI want to do something like this using drift