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
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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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