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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

If Statement/ Related Formula assistance

Wanting to create a formula that essentially does a vlook up across fields. Trying to create an out put that would show if the data from table A matches table B, would be great to generate a yes or no outcome.
 
Below is the latest formula I have tried but getting the error message "Function RELATED expects a fully qualified column reference as its argument. "
 
If(RELATED('Previous Report'[Concat2]='Export'[concat2]),1,0)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

If you are making it as a new column in "Export" table and there is a relationship between "Export" and "Report" then change the statement to :

 

If(RELATED('Previous Report'[Concat2])='Export'[concat2],1,0)

 

Only 1 parenthesis in the wrong place 🙂

 

/Adrian

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous,

 

I think you may try to use LOOKUPVALUE function.

For your sample, the calculated column may look like:

 

Column = IF(ISBLANK(LOOKUPVALUE('Previous Report'[Concat2],'Previous Report'[Concat2],'Export'[concat2],"NO")),0,1)

 

Please try.

Aiolos Zhao

Anonymous
Not applicable

If you are making it as a new column in "Export" table and there is a relationship between "Export" and "Report" then change the statement to :

 

If(RELATED('Previous Report'[Concat2])='Export'[concat2],1,0)

 

Only 1 parenthesis in the wrong place 🙂

 

/Adrian

Anonymous
Not applicable

It looks like the extra ")" did the trick. Thanks for catching that.

Anonymous
Not applicable

Hi @Anonymous,

 

If the answer is what you want, could you please mark it as "Acceptable Solution"?

 

So other people will know the question is solved.

 

Thanks.

Aiolos Zhao

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.