Forum Discussion
Parameters setting other parameters
- 8 years ago
You must be quite close because haven't you already edited your M code to append the number (which is in the parameter) to the URL?
You then have to add a line before 'Source = ..... ' in the advanced editor of your query which creates a new variable, something like CityNo = if CityParameter = "Webster" then "4954677" else if CityParameter = "Mayer" then "5036896"
You then use CityNo in the URL which gets assigned in the 'Source =' line.
Hi solarnstorage,
Could you please offer me some sample data and post your desired result if possible?
Regards,
Daniel He
I think HotChilli has the right idea, I'm trying to figure out how to do that.
My table looks like this:
The parameter I want the user to be able to filter the data with is the city name: Webster or Mayer. But the value I have to pass to as a parameter to the URL is the numerical code (4954677 for Webster). I don't know how to connect that together.
Thanks!
- HotChilli8 years ago
Community Champion
You must be quite close because haven't you already edited your M code to append the number (which is in the parameter) to the URL?
You then have to add a line before 'Source = ..... ' in the advanced editor of your query which creates a new variable, something like CityNo = if CityParameter = "Webster" then "4954677" else if CityParameter = "Mayer" then "5036896"
You then use CityNo in the URL which gets assigned in the 'Source =' line.