Forum Discussion

Hanspw's avatar
Hanspw
Helper I
5 years ago
Solved

Conditional merge/add custom colum with table

Hi.   Here is my data tables:   "Datagrunnlag" is the fact table. which contains many transactions which are registered on both company code and project code. I then have 10 more columns wi...
  • Hanspw's avatar
    Hanspw
    5 years ago

    Ok, i think i finally understood what you meant.. I now did this:

    • Combined dim_project and dim_company to one single table. In this table i made new ID keys which consisted of projectnumber for projects and company nr for companies.
    • In fact table i made a new column and then used dax code to make this same id_key, so for some companies ID key was projectnumber and for other companies ID key was company number.

    I now have a relationship with all values, which was what i wanted, and the refresh on the dataset takes 15 seconds instead of 15 minutes 🙂

     

    Now i just need to find out how i can combine relationships, which can change over time.. so that the releationship is different lets say in 2020 than it is in 2021...