Forum Discussion
How to create measure with dynamic aggregation and format ?
Hi,
Supposed that i have a database with fews variable like :
| variable | value |
| Total Profit | 100,687 |
| Investments Profit | 19,747 |
| Gross Loss Ratio | 32% |
| Net Loss Ratio | 54% |
The variable will be in the filter section and i would like to show depending on the selection the right format on a clustered bar.
In a simple table, it work but not on the graph because of the X axis who stay between 0 and 1.
5 Replies
- amitchandakSuper User
menphis21 , if you are using this code in a measure slicer, My advice would be to check if the field parameter can be used
- menphis21Helper IV
Thank you, i dont have the option to create new parameter with fields.
I tried to write the same the code also but its not working. There is another solution ?
Thanks
- AnonymousNot applicable
Hi menphis21 ,
What's the version of your Power BI Desktop? You can upgrade to the latest one if it still not be the latest version. Please check if you can find the option "Field parameters" in Options page...
Besides that, there are some limitations on using Field parameters, and these can also cause the field parameter to not work properly...
In addition, you can refer the following links to dynamic
Creating Value Dynamic Formatting using Calculation Groups
Dynamic Formatting of Switch Measures in Power BI
Best Regards
- AnonymousNot applicable
Hi menphis21 ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
- menphis21Helper IV
Hi Anonymous ,
I am still trying to resolve it and the filed paramter didnt permit me to revole it or i dont know how to.
In one field, i have few variable, how can configure that ?
variable value Total Profit 100,687 Investments Profit 19,747 Gross Loss Ratio 32% Net Loss Ratio 54%