Forum Discussion
mitchmoore2
9 years agoRegular Visitor
How do I create a date slicer that filters multiple date columns?
Trying to figure out how I can create a date slicer that can filter accross multiple date columns simeltaniously. I've created a date dimension table, however, I can only create a single active one-t...
TheOckieMofo
Resolver II
9 years agoYou can have multiple relationships between a lookup table (like a date table) and a fact table. However, only 1 can be active at a time. So if you want to leverage an inactive relationship, you would use the function USERELATIONSHIP().
The syntax is pretty straightforward. Basically, you would use it as a filter criteria in a CALCULATE function, something like:
CALCULATE(SUM([SALES]),USERELATIONSHIP('DATE_TABLE'[DATE],'SALES_TABLE[SECONDARY_DATE])
Hope that helps.