I have a calculated field who’s output is driven by a parameter.
ifelse(
${param}=‘Revenue’,{revenue},
${param}=‘Attainment’,{attainment},
0)
{revenue} is set as default format as currency in the analysis
{attainment} is set as default format as percentage in the analysis
I would like the calculated field to inherit the default formatting of the underlying fields. ie when Revenue is selected in the param control, then the calc field should not only show {revenue} but show {revenue} as currency. likewise, the calc field should show {attainment} formatted as a percentage when Attainment is selected.
I am aware of workarounds for this in Insight type visualizations using additional ifelse statements within the vis. For my use case I am referring to all visualization, not just Insights.
To add one more note. I’ve seen multiple questions here regarding dynamic currency representations, enabling the functionality I am requesting will allow for correct currency representation controlled by a parameter as well.