Okay... which dashboard graph are you talking about? The information displayed by the dashboards should obey the permission sets - so if you log in with a user that is only allowed to see folder2, then the dashboards should only show machines in folder2.
Thank you for you help, but the point is to keep access to all the tree, without having to use several users.
By seeking in my sql manager I was able to do the request I want:
select count(*) as 'count', [EPOLeafNode].[AgentVersion] from [EPOLeafNode] where ([EPOLeafNode].[NodePath] like '1\2\5\8%') OR ([EPOLeafNode].[NodePath] like '1\2\5\7%') group by [EPOLeafNode].[AgentVersion] order by [count] desc
But how to import this SQL in ePo 4.0. It appears that I can only inport xml files. Is there a way to convert easily this SQL request into an xml file ?