Splice the three fields of "Region", "Account Manager" and "Regional Manager" with "/", and remove the last "/", as shown in the figure below:
Note: the length of the spliced fields is different. If it is empty, it is necessary to remove the last splicing character in the function.
Splice with CONCATENATE function.
The nested function IF add "/" for splicing and segmentation;
Since the spliced fields have different lengths, it is necessary to use the LEFT and LEN functions to remove the last "/" in each spliced field.
Sample data: Splicing.xlsx
Add the excel dataset to FineBI, as shown in the following figure:
Click "Add Table" → "Self-Service Dataset" to create a self-service dataset, as shown in the following figure:
Click "selected field" and select all fields under the "Splicing" dataset, as shown in the following figure:
Add a new "New Column", name it as "Splicing" and enter the formula:CONCATENATE(Region,IF (ISNULL(Region),"","/"),Regional Manager,IF(ISNULL(Regional Manager),"","/"),Account Manager,IF(ISNULL(Account Manager),"","/")), click "OK", as shown in the following figure:
Note: the fields in the formula box need to be selected by clicking the selection area on the left, and cannot be entered manually.
Because the spliced fields have different lengths, you need to use the function to remove the last / of the spliced fields, add a "New Column", name it as "Remove the last one", enter the formula: LEFT(Splicing,LEN(Splicing)-1), and click "OK", as shown in the following figure:
Name and save the self-service dataset.
See Section 1.1 of this file for details.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy