I un-ticked allow multiple values
and just went with single selection parameters.
Report builder group not retrieving correct data
-
24-06-2022 - |
Вопрос
I have a parameter at the top where someone can choose 1 or more divisions.
A group is used to repeat a table for the divisions. In my db I have asigned values stat1, stat2 and stat3 for automotive and stat4, stat5 and stat6 for equipment. For some reason it is reapeating automotives data and not retrieving equipments data, but it retrieves the correct division.
It's doing this:
and this:
The second one, is supposed to be stat4, stat5 and stat6. Not what it is now.
Решение 2
Другие советы
I can't add a comment yet so I'm going to try answer:
Try deleting any .data files and then re-running. I have noticed that sometimes in debug mode it re-uses the previous data.
Check that the parameters are set up correctly: The parameter expression to pass it to a query should be:
=SPLIT(JOIN(Parameters!<your param name>.Value,","),",")
In your query you should be using:
SELECT * FROM [Table] WHERE [Division] IN (@Parameter)