Forum Discussion
Problem calculated coloum vs measure
Hi Marcox28,
First of all you need t understand that measures and calculated columns are different, the main difference is the evaluation context of each one.
Check this link were you have a explanation and some examples for each one and how you the react depending on context.
Looking at your case you can't filter a calculated column based on a measure since the context of the column will be different on the measure you are filtering, so when you aplly it to a column it will give odd result.
Making a simple test you can check that the measure you use for the calculted column his always giving you the minimum date of the tableand not the one in the filter. When you add it to a measure it wil give you the expectet change based on the slicer check the example below:
Regards,
MFelix
I can not understand how I can get a grouping in a Matrix using a calculated column that works like the measure you showed me.
Keeping in mind that I need to use as minimum date the minimum value selected in the data slider
- MFelix8 years agoSuper UserWhat do you mean by grouping? What is the result you want to.achieve?
- Marcox288 years agoHelper II
I would like to get a matrix where I can see the regroupment by parity. as the first field the calculation of the calculated parity column and by drilling down display the details of the stores.
- Anonymous8 years agoNot applicable
Marcox28,
Calculated column will not response to slicer selections, see https://community.powerbi.com/t5/Community-Knowledge-Base/Calculated-Column-Table-Change-Dynamically-According-to-Slicer/ta-p/163321.
In your scenario, to make Parita dynamically change according to date slicer, you would need to create a measure, however, measure can't be dragged into Rows of Matrix, thus it is not possible to create the Matrix as you describe.
A workaround is to create a summarized table containing Parita measure, and then create Matrix visual using this summarized table, but in this case, Parita measure will act as a static column in the summarized table and it can't be changed dynamically.
Regards,
Lydia