Forum Discussion
Ignore relationship with date table while still referencing date table in measure
Bit of a weird problem that I haven't come across before that I just can;t figure out how to get around. I'm using a data model (not mine) where the Date table has a relationship with the Asset Status table on the EffectiveFromDate (in Asset Status table - see below for example of data). For this measure I'm trying to create, I want to ignore that relathionship becuase I need to include the rows in the Asset Status table where the EffectiveFromDate is not in the filtered date range. HOWEVER, I do need to reference the filtered Date table as part of the expression in my SUMX calculation. Here is the measure before I try to ignore the active relationship...it calculates fine:
Any help would be much appreciated!
Modify the existing relationship to be inactive. Then, when you need it, add USERELATIONSHIP to your CALCULATE modifiers.
2 Replies
- lbendlinSuper User
Modify the existing relationship to be inactive. Then, when you need it, add USERELATIONSHIP to your CALCULATE modifiers.
- JRF_PowerBIFrequent Visitor
Thanks! Yes this worked great - I'd got my head stuck in thinking I had to acheive this through DAX.