Forum Discussion
Compare Dynamic Columns in a Matrix
- Anonymous1 year ago
Hi JimSales81 ,
Well there isn't any explicit restriction on field parameters that would prevent us from using measure selection when working with two field parameters.
Just that in practice, it isn’t behaving as expected when trying to create a dynamic difference between two field parameters.
Thank you
Hi JimSales81
Thanks for reaching out to the Microsoft fabric community forum.
Since using two field parameter selections as variables isn't yielding the desired results, consider modifying your approach by creating two separate measures one for 'Compare with Previous Quarter' and another for 'Compare with Same Quarter Last Year'. Then, use a field parameter to allow users to select only the end quarter.
The start quarter will be dynamically determined within each measure based on the selected comparison type.
Instead of relying on both a start and end quarter selection via field parameters, simplify the design by allowing users to select only the end quarter using a field parameter. Then, create two separate comparison measures:
- One measure to calculate the difference from the previous quarter.
- Another measure to calculate the difference from the same quarter in the previous year.
Each of these measures will internally determine the appropriate start quarter by offsetting the selected end quarter. For example:
- The “Compare with Previous Quarter” measure will find the quarter immediately before the selected end quarter.
- The “Compare with Same Quarter Last Year” measure will look 4 quarters back.
These calculations can be handled within DAX using functions like DATEADD, PARALLELPERIOD, or custom quarter logic using a date table.
I hope this information helps. Please do let us know if you have any further queries.
Thank you
- JimSales811 year ago
Helper I
I had a solution like this but sometimes the users like to pick Random quarters to compare like Q3 2024 vs Q2 2025. My solution would solve for that. Can we confirm at the current time measures between 2 field parameters can not be done?
- Anonymous1 year agoNot applicable
Hi JimSales81 ,
Well there isn't any explicit restriction on field parameters that would prevent us from using measure selection when working with two field parameters.
Just that in practice, it isn’t behaving as expected when trying to create a dynamic difference between two field parameters.
Thank you