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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Get the value in Power Query from Slicer Selection

Hello All,

I am integrated on slicer to get the month's date.... its is dynamically to follow this link : https://www.powerquery.training/portfolio/dynamic-calendar-table/

I want to Slicer selected value parse to my power query link :
let
    StartDate="Selected Vaule from Slicer",

------So i can use this value to my query.--------
in
    StartDate

Please let me know if you guys have any solution about this senario...

Thanks in advance.

Pankil

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @Anonymous,

Based on what I know, we can't get the selected value from slicer in Query Editor. I suggest you can use parameter. Please use the slicer column to create a list in Query Editor, and add the parameter as start date as follows.

= List.Dates(Parameter1,100, #duration(1,0,0,0))


In Power BI desktop, please click the Edit Queries->Edit parameter, you will select different value in parameter list, the table start date will change after you click "Apply changes"

step1step1
step2step2
resultresult
Reference: POWER BI DESKTOP QUERY PARAMETERS, PART 1


Best Regards,
Angelia

View solution in original post

1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @Anonymous,

Based on what I know, we can't get the selected value from slicer in Query Editor. I suggest you can use parameter. Please use the slicer column to create a list in Query Editor, and add the parameter as start date as follows.

= List.Dates(Parameter1,100, #duration(1,0,0,0))


In Power BI desktop, please click the Edit Queries->Edit parameter, you will select different value in parameter list, the table start date will change after you click "Apply changes"

step1step1
step2step2
resultresult
Reference: POWER BI DESKTOP QUERY PARAMETERS, PART 1


Best Regards,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.