Forum Discussion
Anonymous
6 years agoNot applicable
alpha numeric value to integer values in power query
Hello, I am trying to utilize the following code in a parameter. The code is already working and provides the number 1. What I am trying to do is to provide the user the ability to select Hawaii a...
artemus
6 years agoMicrosoft Employee
Don't try to do this inline. Make, or get a table with the state to id mapping. Then in your parameters choose the column with the state name as the options for the user. In your code, Make a new query by selecting reference of the mapping table. Then filter it by the query parameter. Finally, use the table in a semi join on your dataset.
Anonymous
6 years agoNot applicable
Thank you so much for your responce - by any chance you have an example?
Thanks!