Forum Discussion

olimilo's avatar
olimilo
Icon for Post Prodigy rankPost Prodigy
1 month ago
Solved

Use calendar's inactive relationship in matrix visual?

My main table is related to the calendar using the following relationships to enable a date toggle (as a field parameter) in a separate tab:   Bar visual is using the field parameter be...
  • krishnakanth240's avatar
    1 month ago

    Hi olimilo 

    Yes, you can not change which relationship a plain Calendar[Date] field uses by default as it will always follow the active one but you can force matrix to use inactive Date Completed relationship. Measure - CALCULATE([Your Measure], USERELATIONSHIP('Data'[Date Completed], 'Calendar'[Date])). Since a matrix unlike your bar chart is not from field parameter's NAMEOF switching.
    You can create measure with USERELATIONSHIP with respect to Date Completed instead of Date Received and rest in the report will be using active relationship