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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors