Forum Discussion
tmendoza
9 months agoResolver I
Dynamic M Query Parameters not working when I make slicer selection
You folks have always been a great help to me. What am I doing wrong with my Dynamic M Query Parameter set up? I'm trying to speed up my Direct Query by utilizing Dynamic M Query Parameters. I fo...
parry2k
8 months agoSuper User
tmendoza, there is no setting as such. I'm wondering if you run the query in the backend using SSMS or other tool with the same slicer value, does it work? I'm wondering if there is some issue at the source that the query is not returning the data.
- tmendoza8 months agoResolver I
Just checked. Backend is working fine. The data is also returned at the power query editor level and report view. The break specificaly happens once a slicer selection is made using the bound parameter. From what I can see, I'm using the right format for it.
let Source = Sql.Database("ABCD.Server.com", "Database", [Query= " SELECT * FROM dbo.vPLGL_ISDashboard WHERE Period = " & Number.ToText(fiscal_period)] ) in Source