Forum Discussion
Combine parameter with a different column?
Hi,
I'm trying to create a parameter which I want to use in a formula for a different table, but for some reason the column type doesn't recognize that it is a value? Do someone have a solution?
1. I'm creating a table:
2. I'm creating a measure to get the chosen value
3. In another table, I have a column formula, for example
Test = 'Rate'[Value of Rate] * 100
Here I would like the new table to list the value of "Test" for each row, depending on what value i select for the parameter.. Any ideas? For example if I write "Test = 2 * 100" it works fine but it doesnt seem to translate for example 'Rate'[Value of Rate] to a number which could be 2 or something..
4 Replies
- v-jianboli-msftCommunity Support
Hi Fompy123 ,
It seems that your [Test] is a calculated column?
SELECTEDVALUE() returns the value when the context for columnName has been filtered down to one distinct value only. Otherwise returns alternateResult.
If you use it in calculated column, the value you selected in slicer will not pass to calculated column, thus it will return blank values.
You may need to add a measure to a table visual:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Fompy123Frequent Visitor
Hi,
Oh, how do you add a measure to a table visual, where you can toggle between different input values?
- v-jianboli-msftCommunity Support
Hi Fompy123 ,
You can add the measure to the table visual's column field:
If you change the selected value in the slicer, the input values will change too:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Fompy123Frequent Visitor
Oh, I see. This doesn't solve my problem, unfortunately. What I want to do is, in your example, multiply the Column1 values with the chosen rate. For example it wouldn't say:
It would say:
So, it is the calculated column (in a different table) that has the measure "Rate"/"Test" (which lies in a different table than the calculated column) as input. But maybe this is impossible due to the filter context thing.
Maybe there is a better solution to be able to - in a calculated column which has a measure as a input/variable - chose which value that measure has. I wan't to be able to toggle between different input values without having to manually go into the field section and write the value.