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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

If any selection(regions) has made on a slicer, how can I show the values of a specific region?

manap_0-1612769290061.png

Hello! I have such a slicer which data is regions of the country. As you can see here you can see that we can select multiple selections. Now I want to make in a such way that if there is no selection I want to show data from a specific value.  For example,  I I want to see "Akmola" region data if the slicer data is not selected (which means All), however if the slicer selected then appropriate data should be shown, in other cases "Akmola" must be shown. How can I do that?

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , Assume you have a measure on which you want to do this, create a new measure like

 

if(isfiltered(Table[Region]), [measure], calculate([measure], filter(Table, Table[Region]="Akmola" )))

 

refer:https://www.youtube.com/watch?v=hXg3kRFSGjA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

 

Since you don't have any measure. Try this

=IF(ISFILTERED(TABLE[REGION]), SUM(TABLE[VALUES]), CALCULATE(SUM(TABLE[VALUES]),FILTER(TABLE, [REGION]= "Akmola")))

 

Best Regards,

Stephen Tao

 

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Assume you have a measure on which you want to do this, create a new measure like

 

if(isfiltered(Table[Region]), [measure], calculate([measure], filter(Table, Table[Region]="Akmola" )))

 

refer:https://www.youtube.com/watch?v=hXg3kRFSGjA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Anonymous
Not applicable

Thanks for answering. What if I do not have any measure? Because I am directly inputting the data to the table without any calculations(I am not using any measure). 

So I have tables, Table["Region"](String) and Table["Values"](Whole number)

Anonymous
Not applicable

Hi @Anonymous ,

 

Since you don't have any measure. Try this

=IF(ISFILTERED(TABLE[REGION]), SUM(TABLE[VALUES]), CALCULATE(SUM(TABLE[VALUES]),FILTER(TABLE, [REGION]= "Akmola")))

 

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.