Forum Discussion
Reordering Column Headers in Matrix with Field Parameters and Calculation Groups
- 5 months ago
Hi SamVH12
Althought the visibility is controlled by a field parameter, field parameters are essential just field selectors - they are not actual columns. Measures in matrix are currently always at the bottom of the hiearchy. A workaround is to materialize the results of these measures in a disconnected table containing the measure names using another measure and add that column together with the measure to the matrix visual.
Please see the attached pbix.
- Anonymous4 months ago
Hi SamVH12
Thank you for reaching out to the Microsoft Fabric Forum Community.
Thanks for the inputs danextian collinq
Inputs from users are very valuable, and additionally, based on my understanding, Power BI doesn’t fully support all of these requirements working together. If you keep both field parameters and calculation groups, everything stays flexible, users can pick measures and time options independently but the downside is that you can’t rearrange the column hierarchy. Measures will always show up at the lowest level in the matrix. If you switch to a disconnected table approach, you do get control over how the columns are displayed, which is nice. But then you lose the ability to have separate slicers for different measure groups, since everything gets combined into one selection. So it really comes down to a trade-off: you can either keep the flexibility with multiple slicers, or control the column layout but unfortunately, not both at the same time.
If there are any deviations from your expectation please let us know we are happy to address.
Thanks.
Hi SamVH12
Althought the visibility is controlled by a field parameter, field parameters are essential just field selectors - they are not actual columns. Measures in matrix are currently always at the bottom of the hiearchy. A workaround is to materialize the results of these measures in a disconnected table containing the measure names using another measure and add that column together with the measure to the matrix visual.
Please see the attached pbix.
Hi danextian
Thank you for your response. I would like to ask how the disconnected table connects to the field parameter or the calculation group. I need to use two field parameters and two calculation groups because I have many measures and comparisons across different periods (current period, previous period, MTD, YTD, etc.), and users can choose which measures and which periods they want to add to the table, not just two or three fixed ones. Your suggestion is similar to the second approach I tried, but that only allows one field parameter (and I didn’t use a calculation group in that approach), while I need two parameters to separate categories of measures. Is there a possible workaround for this?