Forum Discussion

renmello's avatar
renmello
Helper I
6 years ago
Solved

Problem with calendar table

Hello! I have a calendar table that i used for the costs from a table of projects  and it worked.  But now i am trying without success to use the same calendar table for another table of tasks to...
  • edhans's avatar
    edhans
    6 years ago

    renmello post a picture of your overall model. I'd bet money you have a bi-directional or many-to-many relationship(s) that isn't necessary nor desirable.

     

    You can still activate inactive relationships in measures inside of CALCULATE:

    Measure Name = 
    CALCULATE(
        SUM(Table[Field]),
        USERELATIONSHIP(Table1[Date],Date[Date])
    )

    For that measure only it will activate the relationship and force that path, removing ambiguity. 

    But I'd still like to see a screenshot of your model.

    Microsoft recommends minimizing use of both Many-to-Many and Bi-Directional Relationships. In other words, unless you are a DAX expert, find another way to remodel your data to conform to a Star Schema and don't use these two features. I avoid them both at all costs.
    Microsoft Guidance on Many-To-Many Relationships
    Microsoft Guidance on Bi-Directional Relationships
    Microsoft Guidance on Importance of Star Schema

  • edhans's avatar
    edhans
    6 years ago

    Glad to assist renmello - can you please mark one of the posts as a solution so this thread can be known to be solved and possibly assist others when they search in the future?