Forum Discussion
admin11
Memorable Member
4 years agoError msg when i try to combine 2 column data into 1 column
Hi All Yesterday @ALLUREAN help me on below post https://community.powerbi.com/t5/Desktop/what-is-the-expression-for-BRAND-M/td-p/2256952 Today I try to create a expression :- SEGM...
- 4 years ago
Hi,
Try this calculated column formula
SEGMENT_M_1 = if(SALES[SOURCE]="LE"||SALES[SOURCE]="SD"||SALES[SOURCE]="PW"||SALES[SOURCE]="PM"||SALES[SOURCE]="DA",'SALES'[SEG] & LOOKUPVALUE(SEGMENT[SEGMENT_C],SEGMENT[SEG_RAW],SALES[SEG]),LOOKUPVALUE(SEGMENT[SEGMENT_C],SEGMENT[SEG_RAW],SALES[SEG]))
admin11
Memorable Member
4 years agoAshish_Mathur
Super User
4 years agoNow click on the New Column button appearing in the ribbon.
- admin114 years ago
Memorable Member
- Ashish_Mathur4 years ago
Super User
Share the download link of your PBI file and show the exact result that you want.
- admin114 years ago
Memorable Member
I know the answer is to combine SEGMENT_C field from SALES Table and SEG field from SEGMENT Table, But i don't know how to write to code .
My PBI file :-