The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 you are using this feature right?
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters
yes,
the rgular binding to the periodcalc column is working. but i want the user to be able to choose from the period column
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
User | Count |
---|---|
80 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |