Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
anamika_singh
Frequent Visitor

Exclude Select ALL option for a field in a calculation

Hello,

 

I am trying to create a calculated column and have to exclude Select All option from  the logic for that specific field. I have targets only for individual values and not all, meaning when all values are selected in the filter, the target should be blank. Please note that i cannot use single select option as i have other calculations which gets impacted. 

 

Please see details below:

 

RegionCountryTarget  Reg A- target is only at country level for AA & AC countries
AAA20  Reg B- target is only at country level for BB country
AAB   Reg C-target is at region level
AAC30   
BBA    
BBB50  If Region A is selected and all countries selected, target should be blank
BBC   If Region A is selected and either AA or AC countries selected, target should be as mentioned
CCB   If Region A is selected and AB country is selected, then Target should be blank
CCA60   
CCC60  I have to create a calculation for Target based on specified criteria and  then compare Target vs actuals
3 ACCEPTED SOLUTIONS
danextian
Super User
Super User

You cant do that with a calculated column as it isn't aware of any slicer selections. Its value will not change no matter what you select in the slicer.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

v-tsaipranay
Community Support
Community Support

Hi @anamika_singh  ,

Thank you for reaching out to the Microsoft Fabric Community. Also thank you @danextian and @lbendlin  for your inputs.

 

This scenario can be handled using a DAX measure instead of a calculated column. In Power BI, when all values in a slicer are selected, it behaves like no filter is applied. To exclude the "Select All" case, you can create a measure that compares the number of selected countries with the total countries in the selected region. If all are selected, the measure returns blank; otherwise, it returns the appropriate target value.

This ensures your targets display only when specific countries are selected, without impacting other calculations.

 

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

 

Thankyou.

View solution in original post

v-tsaipranay
Community Support
Community Support

Hi @anamika_singh ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

View solution in original post

6 REPLIES 6
v-tsaipranay
Community Support
Community Support

Hi @anamika_singh ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @anamika_singh  ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

v-tsaipranay
Community Support
Community Support

Hi @anamika_singh  ,

Thank you for reaching out to the Microsoft Fabric Community. Also thank you @danextian and @lbendlin  for your inputs.

 

This scenario can be handled using a DAX measure instead of a calculated column. In Power BI, when all values in a slicer are selected, it behaves like no filter is applied. To exclude the "Select All" case, you can create a measure that compares the number of selected countries with the total countries in the selected region. If all are selected, the measure returns blank; otherwise, it returns the appropriate target value.

This ensures your targets display only when specific countries are selected, without impacting other calculations.

 

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

 

Thankyou.

Hi @anamika_singh  ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

danextian
Super User
Super User

You cant do that with a calculated column as it isn't aware of any slicer selections. Its value will not change no matter what you select in the slicer.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors