Hi Sofie,
There is very little information in saphelp with the link:
http://help.sap.com/saphelp_nw73/helpdata/en/45/9d0fbe42c40063e10000000a11466f/frameset.htm
For the example you can create a view for hiding the keyfigure, and then you can create the button, select the data-provider specific command and then you can assign query/view. There is also the filter command but I think it only works for characteristics.
Hope it helps.
Yasemin.