I have a limited list of predefined values.
I'm trying to bind this list into a slicer, and to directly access the chosen value in the advanced query editor.
I tried the following approaches so far:
1. defining a table 'Options', which contain the different possibilities.
Adding a slicer on top of it, and setting a measure which is defined by SELECTEDVALUE
however, I didn't find a way to access the measure value from the advanced query editor.
2. defining a parameter, and using the syntax "&Text.From(<parameter_name>)&" inside the advanced query editor.
However, I coudln't bind the parameter to the chosen value from the slicer.
Do you have any suggestions on how to solve this?
From your information, it seems that you want to have access to the measure value from the query parameter. I'm afraid that we may not achieve the Selectvalue in the measure in Current value field currently.
What do you want to do? We may try another way to achieve your requirement.
hi @v-piga-msft, thank you for your reply.
The data is based on kusto queries. The amount of records which isreturned is higher than allowed (can reach to billions). For this reason I would like to add filters to my query.
For simplicity, let's say that the schema contains a string column, named 'type'. My query will be defined as follows:
kustoTable | where timestamp >= ago(7d) | where type == chosenType
Hoewever, since there are many types, and their value may vary, I want to enable the user to modify "chosenType" parameter, which is defined in the Advanced query editor. For example, I tried to use a slicer for this purpose.
Is it possible to achive this? I hope that my explanation was clear.
From your information, it seems that you get data with the connector of Azure Data Explorer(Beta).
You could refer to here, I think that we could use set the parameter in your query steps, but I don't know if your query support the option like IN function in T-SQL, if not, you may use query like this:
Table.SelectRows(#"Added Custom", each [Custom] = P1&"d")