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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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') )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |