Forum Discussion

VKravc1's avatar
VKravc1
Frequent Visitor
3 years ago
Solved

Multiple Column Relationship with the same date in a single model

Hi eveyrone! Unfortanetaly, didn't find relevant issue. So, i have 2 data tables with the same columns (solely different between these tables is one from xlsx static file and other updates dymanicl...
  • VKravc1's avatar
    VKravc1
    3 years ago

    So finally it works - I just need to add second filter to CALCULATE and it must be exactly second table in USERLEATIONSHIP. So the correct measure is:

    TestTest = CALCULATE('Calendar'[TotNumber],
    USERELATIONSHIP('Model: Location'[Current Location:], 'HlpTTS_data'[Location of residence before displacement]),
    USERELATIONSHIP('Model: Location'[Current Location:],'kobo_data'[Location of residence before displacement])
    )

    amitchandak , thank you so much for your tip!