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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
0Anna0
New Member

pass a different parameter into SQL function than what the user chooses

i have  sql function which accepts some kind of timeline parameter which retrives me a table in a period of time. the sql funcftion can only accept the values which in the PeriodCalc cloumn. is there a way for the user to pick a value from a slicer that contains the values from the Period column  but  the actual value that will be pass to the SQL would be from the PeriodCalc cloumn?

(example: user picks 3Y from the slicer but the SQL gets 3.00)

using the m query bind to parameter 

 

0Anna0_0-1658646930518.png

 

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

yes,

the rgular binding to the periodcalc column is working. but i want the user to be able to choose from the period column

SpartaBI
Community Champion
Community Champion

I think you can try and twick the sql statement in the M code, and add sone sql logic to change from the value the user selected to the value eventually be in the final output

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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