I need to create a single explorer where I should join 3 views but the problem here is 2 views are from one folder and the other view left is from another folder.
Is it possible to join like that, because I tried but it is showing error.
You can create a new explore file and include it in the model. Or you can create the explore in model itself. However, you have to provide reference of views in explore or model files. (use include parameter)
Step 1: To keep things simple, I made a new explore file called “three_view.explore.” All three view references are included in the three_view.explore file.
> # all views files path> include: "/views/Folder1/view1.view"> include: "/views/Folder2/view2.view"> include: "/views/Folder3/view3.view"> > explore: three_view{> # business logic and join conidtions etc > }>
Step 2: Add explore file to the model -
> connection: "@{connection_name}"> > # include all explore files in the model file> > # Explore for three views table> include: "/explores/three_view.explore"> > datagroup: model_dg {> sql_trigger: SELECT --- ;;> max_cache_age: "4/8/16/24 hours/min"> label: "Datagroup Lable"> description: " Datagroup description"> }>