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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Measure to get data from direct query table based on EmployeeID

I have 2 tables
Table 1 -  Employee with their activity (id, Points, Date)
Table 2 -  Limited Employee with their Photos (id, Image)
I want to display top employee photos with their name so i am using the second table as direct query source. 
the relation between table 2 and 1 is  1to*
I want to create a measure to get the Employee Photo 

Emp image =
var a = VALUES(EmployeePhotos[Image])
RETURN  IF(ISBLANK(a),Other Image ,a)
this measure working fine with import mode but for direct query mode getting an error 
Surya9_0-1704807182239.png

 




1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

 

DirectQuery has certain limitations compared to Import mode. For example, some DAX functions behave differently or are not supported in DirectQuery mode. Please review the limitations of DirectQuery(https://docs.microsoft.com/power-bi/connect-data/desktop-directquery-about#limitations).

 

The DAX function VALUES might not work as expected in DirectQuery mode, especially when dealing with binary data like images. You might try MAX instead.

 

If it still doesn't work, I would suggest that you change this table to import mode. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.