Forum Discussion

cshier's avatar
cshier
New Member
3 years ago
Solved

Comparing Date Counts

Hi, I appreciate that this is a question that has been asked and answered many times before but despite my best efforts in looking in to date tables, I have not been able to wrap my head around it. ...
  • HotChilli's avatar
    3 years ago

    I wouldn't say it is simple but it is something to learn to understand relationships and DAX.

    First you want the date table to filter the Fact table so change the relationship to one-way.

    The important thing, though, is to activate the relationship when using the 'End' measure.  So you'll write an explicit measure to get the Count of end records while using the relationship which is inactive currently.  

    It'll be a simple Calculate with count and the keyword USERELATIONSHIP.

    Here's an example

    https://www.learndax.com/power-bi-userelationship-function-with-example/