Forum Discussion

jonahlawson's avatar
jonahlawson
Frequent Visitor
3 years ago
Solved

How to combine two different date filters

I have an issue with my date filters. I have a contracts tracking page and I want to show the amount of contracts due within a certain time period and at the same time the dollar amount of that contr...
  • johnt75's avatar
    3 years ago

    Create a date table, marked as a date table, and link that to both your date columns in your fact table. Only 1 relationship can be active at once, but you can use USERELATIONSHIP to activate the other relationship when needed. 

    If you made the link to the PO Date the active one, then your measure for the $ amount would be something like

    Dollar Amount = CALCULATE( SUM('Table'[Amount]), USERELATIONSHIP('Date'[Date], 'Table'[Dollar date]) )