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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Error with AND Statement

Hi All,

 

I have this Calculated Column:

error.png

 

But I got this error message:

error2.png

 

The thing is that those two tables have relationship between.

 

Any suggestions?

Thanks

4 REPLIES 4
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please share the relationship between the three tables if it does not contain any confidential information? If the 'BurnUpPointsData' Table have a "one to Many" relationship with other table, we cannot use Related to get the value, because related can only get one value but there maybe many possible value in "one to Many" relationship , we need to chang the formula using other function based on particular condition.

 

3.jpg4.jpg5.jpg


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
VasTg
Memorable Member
Memorable Member

@Anonymous 

 

Looks like the Sprintdata table is not related(no relationship defined) to the table where you are trying to create the new column. 

 

I would also recommend you to use variables to get the RELATED values and use them in the IF statement.

 

 

Connect on LinkedIn
amitchandak
Super User
Super User

What are you trying to achieve?  Please provide more details

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.