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
sarath5140
Helper I
Helper I

Lookup Values from another table

Hi,

 

Please help me in solving the below problem.

 

I am using the below calculated column to get the values from another table if my current table column matches.

 

Note :- Both my tables are not related to each other

 

ActiveIDs = CALCULATE (
FIRSTNONBLANK(ActiveTable[Id],1),
FILTER ( ALL ( ActiveTable ), ActiveTable[SG] = Table[SG] )
)
 
Also, I have tried another formula,
 
ActiveIDs = CALCULATE (
CountRows(ActiveTable[Id]),
FILTER ( ALL ( ActiveTable ), ActiveTable[SG] = Table[SG] )
)
 
 
Above both dax formulas are working fine in my power bi desktop but when I publish it to the web , I am getting the error like Can't display the Visual error : This error i have seen only from today till yesterday Visual is working fine and it is displaying the results but I am not sure what hapenned suddenly.
 
Error details :
 
The query referenced column 'Table'[ActiveIDs] which depends on another column, relationship or measure that is not in a valid state. Additional information: ''.
Please try again later or contact support. If you contact support, please provide these details.
 
Can anyone help me in resolving this issue
 
Thanks
1 ACCEPTED SOLUTION

Hi @v-piga-msft,

 

It got resolved. I didn't use calculate and count rows function and instead used the relationship between two tables and got the desired result.

 

Thanks for your help.

 

 

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @sarath5140 ,

 

If it is convenient, could you share some data sample which could reproduce your scenario and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-piga-msft,

 

It got resolved. I didn't use calculate and count rows function and instead used the relationship between two tables and got the desired result.

 

Thanks for your help.

 

 

Greg_Deckler
Community Champion
Community Champion

Have you looked at LOOKUPVALUE?

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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!

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.

Top Solution Authors
Top Kudoed Authors