Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
ClaytonPenner
Regular Visitor

Dynamic M Query with Table Visual

I have a report that utilizes a dynamic M query parameter. The parameter is binded to a column and everything works great when the binded column is a slicer or when the column is the only column in a table visual. What I would like, and seems to not work, is have other columns included in the table with the binded column and still only pass the binded column as the parameter.

I've tried including a table that only has the item number and relating it to my item table which sort of works but the user still needs to select the value in that new table after searching which isn't great functionally. 

 

I know using a Drill Through page would solve this and that's likely what I'll do if this doesn't have a solution.

data source is SQL Server.


Parameter working when the binded column is the only column.

ClaytonPenner_0-1739207213054.png

When adding more columns

ClaytonPenner_1-1739207711076.pngClaytonPenner_2-1739207749580.png

 

ClaytonPenner_3-1739207765170.png

 

 

6 REPLIES 6
ClaytonPenner
Regular Visitor

I ended up going with a drill through page instead.

v-rzhou-msft
Community Support
Community Support

Hi @ClaytonPenner ,

 

If your use cases require passing multiple values to a single parameter, set the control to Yes and make sure your M query is set up to accept multiple values. Here's an example for RepoNameParameter, which allows multiple values:

vrzhoumsft_1-1739262906328.png

You may also check the Considerations and limitations.

 

Best Regards,
Rico Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I don't require multiple parameters. I essentially don't want the table row selection to be a concatenation of all the columns together but rather just the first column "Item Number". In my last screenshot it shows my item number "AG000003" is being combined with the description and default vendor which makes it an incompatible filter for the parameter mapping. I don't know if that combining of column data has a work around or a setting that can be changed.

Does your M code account for the two different scenarios. scalar value or list?

No, only scalar value. But I don't need my report to work with selecting multiple rows of the table.

the visual (or the user interacting with it) will decide if it sends a single value or a list to the M parameter - you need to prepare for both scenarios.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.