Forum Discussion
Pass SelectedValue's ID as Parameter to a DirectQuery
Hi rahul_dt ,
Currently, only one field can be bound to an M parameter.
Dynamic M query parameters in Power BI Desktop - Considerations and limitations
If the ID and Name are one-to-one, you can modify the query to apply the conditions that were previously applied to the [ID] to the [Name], so that [Name] can be used as the slicer value.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Hi, thanks for your reply!
I understand only one field can be bound to an M parameter, but I'd like to use the [Name] column as slicer values, however, the parameter must be bound to [ID] column.
And on the basis of what slicer value is selected, the corresponding ID values must be passed to the second query.
The [ID] and [Name] columns both belong to the same table such that the [ID] column is a primary key
Please let me know if I can provide more information to help provide a context.