Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
84 | |
57 | |
45 | |
42 | |
37 |