Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Metric not filtering by date

Hi All!

I've loaded 3 tables and joined them. But I have the problem that one metric doesn't get filtered by date. The Cost metric.

I don't know what I'm doing wrong.

This table is using Order Date from OMS table and Cost from Google Ads table.

 

 

The 3 tables are

  • OMS
  • Google Analytics
  • Google Ads

 

And the relationships are

OMS with Google Analytics

Order Date <-> Order Date

Order ID <-> Order ID

 

Google Analytics with Google Ads

Google Ads Campaign ID <-> Google Ads Campaign ID

 

OMS with Google Ads

Order Date <-> Order Date

 

 

11 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Um, that's an ugly data model, no offense. The issue is likely the two bidirectional many-to-many relationships you have between those two tables. The direct many-to-many is inactive. You could try it using USERELATIONSHIP but I would strongly recommend refactoring your data model and getting rid of many-to-many relationships by putting bridge tables between them.

      • v-gizhi-msft's avatar
        v-gizhi-msft
        Icon for Community Support rankCommunity Support

        Hi,

         

        I am sorry that i have forgotten attaching the img, please see this:

         

        Best Regards,

        Giotto

  • v-gizhi-msft's avatar
    v-gizhi-msft
    Icon for Community Support rankCommunity Support

    Hi,

     

    Please try to change the relationship marked by red circle to inactive and the relationship marked by blue circle to active.

    Hope this helps.

     

    Best Regards,

    Giotto

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi

      Thanks but there is no image attached to understand what you are saying.