Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Missing Junctures

Received Response
143
Views
12
Comments

Summary

Missing Junctures

Content

Hello,

 

I'm working on a report in which I encounter a problem when an address has a carriage return because it duplicates Data.

 

For example for a same ship_stop of a same shipment I have

this :

image

 

and this :

 

image

 

And instead I want to have the same thing but with

STOP_ADD_LINE1 (49 BOULEVARD ESTIENNE D'ORVES)

STOP_ADD_LINE2 (ZAC DU POLYGONE)

 

And also inside of a Ship_stop I have a stop_address data set which is doubled :

 

image

 

When I would like to do the same as explained above.

 

I can't send Data Model and Data sets on this forum but by mail if you need.

 

N.B: I tried a clause such as

,(SELECT address_line from location_address where line_sequence = 1 and location_gid = 'la.location_gid') STP_ADD_LINE1

,(SELECT address_line from location_address where line_sequence = 2 and location_gid = 'la.location_gid') STP_ADD_LINE2

,(SELECT address_line from location_address where line_sequence = 3 and location_gid = 'la.location_gid') STP_ADD_LINE3

 

But it didn't work as (I think) it doesn't know la.location_gid corresponds to, so there is no data on the XML (I would want the field to return data from the location_gid of the ship_stop of the shipment_gid.

Tagged:
«1

Answers

  • YGUTTIKONDA
    YGUTTIKONDA Rank 6 - Analytics & AI Lead

    Yes understood. this should somehow be incorporated in the SQL so that the XML will be generated accordingly

  • YGUTTIKONDA
    YGUTTIKONDA Rank 6 - Analytics & AI Lead

    can you provide a sample of carriage return data  ??

  • YGUTTIKONDA
    YGUTTIKONDA Rank 6 - Analytics & AI Lead

    you can ignore the link, as I was under the impression this is a single query ..

    Looking at your Ship_stop query

    One "Location" can have Multiple "LOCATION_ADDRESS" correct ??

    can you try a simple query with a specific location and try to get the LOCATION_ADDRESS

  • YGUTTIKONDA
    YGUTTIKONDA Rank 6 - Analytics & AI Lead

    Elkbir,

    From what i read and understood, the easiest way is to implement this in your Data Model (SQL Query) it is tough to interpret what la.location_gid without looking at your query .. it would be easier if you could just simplify your question.

    One other way to approach this is to have separate queries in your data model like Master / Detail or Parent / Child.

    0--YG

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics & AI Lead

    Yes indeed but as I wrote in my OP this "didn't work as (I think) it doesn't know to what la.location_gid corresponds to, so there is no data on the XML corresponding to the address when I put this clause (I would want the field to return data from the location_gid of the ship_stop of the shipment_gid."

    So I thought, since all the Data I want to gather is already in the XML but not in the format that I want (since both my Data sets are doubled) it must be a problem of juncture

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics & AI Lead

    Ok thanks but the thing is I don't want to avoid CR. For example if I have this :

    49 BOULEVARD ESTIENNE D'ORVES

    ZAC DU POLYGONE

    I want to display it as it is in my report. This means I would most likely have several fields :

    49 BOULEVARD ESTIENNE D'ORVES -> STP_ADD_LINE1 (where the clause would be something like (SELECT address_line from location_address where line_sequence = 1 and location_gid = 'la.location_gid'))

    ZAC DU POLYGONE -> STP_ADD_LINE2 (where the clause would be something like (SELECT address_line from location_address where line_sequence = 2 and location_gid = 'la.location_gid'))

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics & AI Lead

    The address in my original post which doubles Data Sets is due to carriage return:

    STP_ADD_LINE (49 BOULEVARD ESTIENNE D'ORVES)

    STP_ADD_LINE (ZAC DU POLYGONE)

    That means that in Location_gid PEI.00096247_00_GG1, the address is written as follows :

    49 BOULEVARD ESTIENNE D'ORVES

    ZAC DU POLYGONE

    where :

    • 49 BOULEVARD ESTIENNE D'ORVES corresponds to the LINE_SEQUENCE 1 of the address
    • ZAC DU POLYGONE corresponds to the LINE_SEQUENCE 2 of the address

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics & AI Lead

    One location_gid = One address such as below :

    image

    (There is a juncture on location_gid = stop_add_loc)

    But in some cases I have carriage return in the address so it duplicates my stop_address and my ship_stop as you can see in my original Post (FYI it's a problem because when the address is doubled, the quantities of my items linked to a shipment stop will be doubled...). So what I want is :

    • when there is no carriage return, leave it as it is above
    • when there is a carriage return add
      • STP_ADD_LINE2 (REST_OF_ADDRESS) in SHIP_STOP
      • STOP_ADD_LINE2 (REST_OF_ADDRESS) in STOP_ADDRESS
  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics & AI Lead

    But if your link is only to join multiple Data Sets I have already done it. As i've said the stop_address Data Set is within the Ship_stop Data set, they are linked by location_gid.