March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have request from the business that needs an option to select ALLSELECTED or ALL, rather than creating 2 different measure can I have one measure and can select between either ALLSELECTED or ALL.
hi @sabd80 ,
instead of alternating between functions, you can use field parameter to alternate between measures. check this:
https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters
Thanks @FreemanZ, I am aware of the field parameter, my whole point for this post is to avoid creating another set of measures.
Hi @sabd80 ,
As far as I know, measure could return results dynamiclly based on filter context. However, we couldn't change the code in a measure dynamiclly.
Here I suggest you to follow sabd80’s solution, Field Parameter should be a good workaround.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |