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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
novicenovice
Helper I
Helper I

Create a table with a value replacement in the field country if specific condition

Dear all,

 

I want to create a table by replacing the values in country field if the segment is for instance "S01"  but I don't know how to proceed.

 

here below my current function : 

 

GROUPBY(SELECTCOLUMNS(V_MARGIN;"SEG";RELATED(V_SEGMENT_GROUP[SEGMENT_GROUP_DESCRIPTION_BIS]);"CTRY";RELATED(V_CUSTOMER_FORECAST[#COUNTRY]));[SEG];[CTRY])

In advance thanks for your help

 

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @novicenovice 

Is your current formula correct?

It seems incorrect.

Could you show me some examples for better analysis?

For example,

you have three tables involved in the "groupby" function,

show a little data of these three tables and show me expected result table based on those tables.

 

Best Regards
Maggie

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.

Top Solution Authors
Top Kudoed Authors