You can run a trace against the SSAS database with Profiler to get at the MDX, but it is going to be broken up into session sets as you drag and drop dimension attributes and hierarchies onto the rows or columns. Another option would be to connect with Excel and use the OLAP PivotTable Extensions to get at the generated MDX to become more familiar with the syntax.
OLAP PivotTable Extensions