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

Please help to correct Lookup & If-condition in Pipeline

Please help me to correct Pipeline in Lookup and If-condition

  1. I have data in a Warehouse which collect data [col : 1]
  2. Build pipeline for lookup data in warehouse [col : 1]
  3. And create If-condition and define the condition : @equals(xml(activity('Lookup1').output.firstRow),'1'
  4. If is True sent message value 1 and 0 when False in MS Team
  5. Correct is sent message 1 but now show message 0 ???

HelloTheSun_0-1720188330902.png

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @HelloTheSun ,

 

Try to modify your formula:

Assuming the column name in the data warehouse is [col: 1], the correct expression would be:

@equals(activity('Lookup1').output.firstRow['col'], '1')

 Or if the column name is indeed 1:

@equals(activity('Lookup1').output.firstRow['1'], '1')

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @HelloTheSun ,

 

Try to modify your formula:

Assuming the column name in the data warehouse is [col: 1], the correct expression would be:

@equals(activity('Lookup1').output.firstRow['col'], '1')

 Or if the column name is indeed 1:

@equals(activity('Lookup1').output.firstRow['1'], '1')

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
December Fabric Update Carousel

Fabric Monthly Update - December 2025

Check out the December 2025 Fabric 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.