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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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

Power BI Monthly Update - September 2025

Check out the September 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