Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
"quanity" (sheet 1) where "Location" = USA (Sheet 2) = quantity (in new column)
and when location dosent match, the result should be blank
Quantity | Location | Desired Result |
10 | USA | 10 |
30 | NZ | |
22 | IND | |
40 | USA | 40 |
Solved! Go to Solution.
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.
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.
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.
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.
calccolumn = COUNTROWS( RELATEDTABLE('Sheet 2') )