Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
FaasBoers
New Member

Table for parameter in Advanced Editor

Hi, I'm using 3 parameters in my SQL query. I am using a slicer to change the value of the parameter. 

Parameters: StartDateParameter, EndDateParameter, CardValueParameter.

I've created a table "StartDate" and "EndDate" and binded these to StartDatePara en EndDatePara. In my report I have 2 slicers where I can select the date. On select the query changes. 

For CardValuePara I'm using an import table "Employees". Columns CardNumber, Name. I've binded CardValuePara to CardNumber. When I create a slicer for CardNumber everything work fine. But when I create a slicer for name, CardValuePara doesn't change. 

Does somebody have a solution for this?

2 REPLIES 2
amitchandak
Super User
Super User

@FaasBoers , Check if you are hitting one of the limitation

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters#considera...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

It looks like I'm trying to do something that it's not made for. 

This is my m query:

StartDate = StartDateParameter, //#datetime(2023, 1, 1,0, 0, 0),
EndDate = EndDateParameter, //#datetime(2023, 12, 31, 0, 0, 0),
Card = CardValueParameter,

 

Source = Sql.Database("MyData", "MyTable", [Query="
SELECT *
FROM MyTable
WHERE TimeStamp >= '" & DateTime.ToText(StartDate, "yyyy-MM-dd hh:mm:ss") & "' AND TimeStamp <= '" & DateTime.ToText(EndDate, "yyyy-MM-dd hh:mm:ss") & "' AND OperatorId = " & Text.From(Card) & ""])


in
Source

 

The "Card" table of my "Employees" list is binded to the CardValueParameter. 

 

When I create a slicer for the "Card" field, the query changes. But when I create a slicer for the "Name" field nothing changes. I'm looking for a workaround 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.