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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
LauraBueno
Helper III
Helper III

Look up value Column in DirectQuery Mode

Hello,

 

I have two tables in Direct Query mode related via a Many to One relationship (Please see below). I would like to find the value within column 'MinMax' column from Table 1 in the column 'Id' in Table 2 and retrieve the value within column 'Higher' of Table 2.

Tables.png

 

If I use the expression below just for a single valuer from MinMax column of table 1, it works:

 

Test = LOOKUPVALUE(Table 2['Higher'], Table 2['Id'],143)

 

However I don't know how I could modify the expression above to do all values within MinMax column of Table1.

 

Any help would be really appreciated!

 

thanks!

2 REPLIES 2
Anonymous
Not applicable

HI @LauraBueno,

AFAIK, current power bi has limited most of Dax functions usage in calculated column/table if you are work with 'direct query' mode. I'd like to suggest you use measure expression instead.
To extract the current row content, you can try to use aggregate function min/max or selectedvalue functions.

Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

You cannot use LOOKUPVALUE() as it cannot handle your M:M ambiguity (it can only return a scalar value, not a table).  Use TREATAS() instead.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.