Unless I'm crazy (which could very well be), that query you posted you got from the other forum isn't going to get you much because it doesn't even have a join to the Add\Remove Programs table. So, you've pretty much got the SQL to do your drilldown in your original post, just drop the Count and add a where clause for the product name and version and add in the variables, and a join into item or vcomputer to get active computers.
So try this for the sql:
SELECT i.Name as [Computername], T0.[Name] AS 'Product Name', T0.[Version] AS 'Version'
FROM [Inv_AeX_OS_Add_Remove_Programs] T0
JOIN Inv_AeX_AC_Inventory_Results acir
ON T0._ResourceGuid = acir._ResourceGuid
Join item i on i.guid = T0._resourceguid
Join itemresource ir on i.guid = ir.guid and ir.ismanaged = 1
WHERE DATEDIFF(DAY,acir.[Collection Time], GETDATE()) < 90
AND T0.[Name] = %ProductName%
AND T0.Version = %Version%
In these steps:
1) Change your original query at level 0 to the alias for product name to 'ProductName', so it starts like the following:
SELECT T0.[Name] AS 'ProductName', T0.[Version] AS 'Version', COUNT(*) AS 'Total Installed'
2) Add that SQL as a new query at level 1
2) On your level 0 query, Click the add drill downs button
3) In the configure drilldowns, pick Different Qeury Level from the Drill down to:, give it a name to display, choose query level 1
4) For Drilldown paramters, add the following:
ProductName|Version
5) I usually like to change the output to new window
Save it all and try it out. You should be able to click any line item in the report and see the breakout of the computers that make up the count.
HTH
Pat