Forum Discussion
Choose aggregation function dynamically
- 4 years ago
Hi 047
The new preview feature Field parameters is probably what you want. Since your data is pre-calculated in different columns, you just need to select data from different columns when switching the choices. You can create separate measures like below to get values from single columns. Then create a field parameter and add these measures to the parameter. Use the field parameter in your visual to switch the aggregations.
Mean value = SELECTEDVALUE('Table'[X_Mean])90Percentile Value = SELECTEDVALUE('Table'[X_90Percentile])Other reference: How to dynamically switch between measures in Power BI visuals with Field Parameters
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi 047
The new preview feature Field parameters is probably what you want. Since your data is pre-calculated in different columns, you just need to select data from different columns when switching the choices. You can create separate measures like below to get values from single columns. Then create a field parameter and add these measures to the parameter. Use the field parameter in your visual to switch the aggregations.
Mean value = SELECTEDVALUE('Table'[X_Mean])90Percentile Value = SELECTEDVALUE('Table'[X_90Percentile])
Other reference: How to dynamically switch between measures in Power BI visuals with Field Parameters
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
- 0474 years agoFrequent Visitor
Thanks for the answer. Reading about it, seems to do the job that I need. However, I'm using RS desktop version. I don't think this will be available anytime soon for the RS version since preview features are disabled.
I will mark this as the answer to help anyone else looking for the answer though. Will look into this once it's available as a general feature. Thanks
- v-jingzhang4 years agoCommunity Support
Hi 047
You can try the solution in this blog: Change the Column or Measure Value in a Power BI Visual by Selection of the Slicer: Parameter Table Pattern. Before the field parameters appear, we all use the solution introduced in the blog to deal with this scenario.
Best Regards,
Community Support Team _ Jing