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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MatCap
New Member

Grab value of a selected cell in tabular visual and run a query

Hello,

 

My model has one table AA which is imported, one table BB which comes by Direct Query. The query has two parameters.

Table AA is represented as a table visual with n rows and 3 columns A, B, C.

When the user selects one cell of a particular row (say row 5), I want to grab the correspondent values in columns B and C and assign that values to two parameters.

I will use those two parameters to run a query and update my dataset in Direct Query.

 

Any suggestion?

 

Thanks

2 REPLIES 2
MatCap
New Member

Hi @daXtreme

I realised I can 'capture' the value of the cell the user has selected by SELECTEDVALUE function.

I wish I could set parameter P1 value equal to the selected value. In that way, I'll be able to run the query:

 

let
filterquery="SELECT * FROM TABLEXX WHERE COLUMNX = '" & Number.ToText(P1) & "'",
Origine = Sql.Database("MY SQL SERVER", "MY DB", [Query=filterquery])
in
Origine

 

Thanks for helping,

daXtreme
Solution Sage
Solution Sage

As far as I know, you cannot do that. What does it mean "update my dataset in DQ" in this scenario?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.