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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Reddyp
Helper I
Helper I

get data where location criteria matches

"quanity" (sheet 1) where "Location" = USA (Sheet 2) = quantity (in new column)

and when location dosent match, the result should be blank 

QuantityLocationDesired Result
10USA10
30NZ 
22IND 
40USA40

@Samarth_18
@tamerj1 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Reddyp ,

 

I suggest you to try this code to create a calculated column.

Desired Result = IF('Table'[Location] = "USA",'Table'[Quantity],BLANK())

Result is as below.

RicoZhou_0-1657699355214.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
technolog
Super User
Super User
Anonymous
Not applicable

Hi @Reddyp ,

 

I suggest you to try this code to create a calculated column.

Desired Result = IF('Table'[Location] = "USA",'Table'[Quantity],BLANK())

Result is as below.

RicoZhou_0-1657699355214.png

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)