Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Field Parameters work great in visuals — you can switch between measures like Sales, Budget, and Forecast easily.
But in DAX, you cannot get the actual number of the selected measure.
If you try using:
SELECTEDVALUE('Parameter'[Parameter])it always gives an error (“column is part of a composite key…”).
You can get the selected field name using:
SELECTEDVALUE('Parameter'[Parameter Fields])But that only tells you which field is selected, not the value of that field.
So, to use that selection inside another measure, you have to rebuild everything using a big SWITCH() — which defeats the whole purpose of Field Parameters.
We need a simple way for a Field Parameter to return the actual value (the number that the visual shows) directly in DAX.
For example, something like this:
Current Metric = PARAMETERVALUE('Metric Parameter'[Parameter])This should give the same number that appears in the visual when that parameter is selected.
No need to rebuild logic with long SWITCH statements.
Simpler and cleaner DAX models.
Makes Field Parameters truly reusable — both in visuals and in measures.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.