It sounds like the PBI Dataset access is happening in your report model, not in Power Query. If that's the case, you likely won't be able to directly access the Dataset from M.
However, you might want to ask about this over on the Power BI Community site.