Hola,
Este foro es para discusiones en inglés. Si no puede debatir en inglés, intente encontrar el foro relativo en español en MSDN donde se encuentran los foros que no están en inglés.
Good day,
This forum is for discussions in English. If you cannot discuss in English then please try to find the Spanish relative forum at MSDN where the non-English forums are.
Using Google translator this is what I understand your question is:
I have a query in which I use GROUP BY ROOLUP in a reference field, when filtering the results with HAVING the filter is performed but the totals of the ROLLUP are still the general totals and not of the filter. Your help please.
It seems in first glance that you are using the wrong filter. Here is the short explanation of the difference quote from Microsoft Learn:
A HAVING clause is like a WHERE clause, but applies only to groups as a whole (that is, to the rows in the result set representing groups), whereas the WHERE clause applies to individual rows.
If you can provide queries to create the table and insert some sample rows + the expected result set according to the sample rows, then we will be able to check exactly what you need and provide a working solution