Can someone tell me how does a restricted keyfigure work to get data from a cube
welcome to SDN!
restricted key figures gets fetch from the cube with relations to the variable or value you have choosen in the restriction. For example: if you have a column of Quantity with specific costelement and controlling area, when you execute the query the system sends the request for quantity for those costelement and controlling area.
Hope it helps.