cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
sreaves
Regular Visitor

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
AiolosZhao
Memorable Member
Memorable Member

Hi @sreaves,

 

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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

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

Hi @sreaves,

 

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors