Forum Discussion

AC23VM's avatar
AC23VM
Helper II
3 months ago
Solved

Matrix Row Filtering Alters Rolling DATESINPERIOD Measures

Has anyone come across a limitation with rolling measures in a matrix?   Context Data is structured as Tests grouped into Journeys. Each Journey has a monthly volume (number of tests in that mont...
  • v-veshwara-msft's avatar
    v-veshwara-msft
    3 months ago

    Hi AC23VM ,

    Thanks for your patience while we looked into this further.

    We tested a workaround using conditional formatting to suppress the value columns for Journeys with no current-month activity. While this hides the values themselves, the Journey name still remains visible in the row header and the blank row continues to take up space in the matrix. That was the closest behavior we could achieve within a single matrix visual.

     

     

    So based on our testing, your understanding is correct. In a single matrix visual, it isn't currently possible to fully achieve all three together: keeping historical Journey data for the rolling window, hiding Journeys with no current-month activity, and preserving correct per-Journey rolling values.

     

    One possible approach is to split the requirement across two visuals. For example, you could use one visual for the overall rolling % calculation using ALLSELECTED or REMOVEFILTERS, and a separate matrix filtered to active Journeys only for the row-level breakdown.

    In most cases, filtering inactive Journeys at the row level should not affect other Journey rows if each rolling measure is scoped correctly, though that would still depend on the exact DAX logic being used in the model.

     

    From what we could determine, this is current matrix visual behavior in Power BI, since row visibility and filter context are tightly connected by design.

     

    Hope this helps. Please reach out for further assistance.

    Thank you.