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 agoAppreciate very much for your help. i encloed below link is the PBI sample file , with detail explanation in the page.
https://www.dropbox.com/s/wh91oq9alv9c5p2/PBS_VER0275.pbix?dl=0
Paul
Ashish_Mathur
Super User
4 years agoHi,
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]))- admin114 years ago
Memorable Member
Happy new year to you , Thank you very much , you code make my table look nice.
- Ashish_Mathur4 years ago
Super User
To you as well. Glad to hear that my solution is working.