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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
AllanBerces
Post Prodigy
Post Prodigy

Slicer Value Default

Hi good day, 

Can someone help me to correct my measure. I have one table and I want the overall value to be the default if non seleted on my slicer.

Measure = INT(ISFILTERED('Table01'[Location]))

AllanBerces_0-1738280205505.png

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AllanBerces ,

 

Based on your description, I think your Overall data is also in the source data section.

In other words, in the data view of Power BI report, and your data looks like this, right?

vstephenmsft_0-1738568876835.png

If so, you need to create a new table which is disconnected.

vstephenmsft_1-1738569381152.png

Use this Area from the disconnected new table to create a slicer.

vstephenmsft_2-1738569390342.png

Create a measure as the visual level filter.

Measure = 
VAR _SEL=MAX('Table'[Area])
RETURN
IF(ISFILTERED('Table (2)'[Area]),
IF(_SEL in ALLSELECTED('Table (2)'[Area]),1)
,IF(_SEL="Overall",1))

Put the measure into the filters of the table visual.

vstephenmsft_3-1738569456949.png

As you can see, if there's no selection from the slicer, the overall part appears.

If you select A or B, the corresponding part appears.

vstephenmsft_4-1738569548050.png

vstephenmsft_5-1738569554659.png

I just demonstrate how to achieve the effect of slicer selection, and the real data in the table visual needs to be calculated and put into it yourself.

 

 

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
Ashish_Mathur
Super User
Super User

Hi,

Your question is not clear.  Share some data to work with and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur thank you for the reply, basically i want to create a slicer to my card, to display 2 group of card

CARD 1 = Value from Previous Week

AllanBerces_0-1738330979394.png

CARD 2 = Value is Max week

AllanBerces_1-1738331068437.png

If in the slicer selected A will show the value on 2 cards for A, and B if selected B. But if non selected from the  slicer (A or B) the default value will appered is Overall. Refer below for my table

 

Table.xlsx

 

Thank you

Anonymous
Not applicable

Hi @AllanBerces ,

 

Based on your description, I think your Overall data is also in the source data section.

In other words, in the data view of Power BI report, and your data looks like this, right?

vstephenmsft_0-1738568876835.png

If so, you need to create a new table which is disconnected.

vstephenmsft_1-1738569381152.png

Use this Area from the disconnected new table to create a slicer.

vstephenmsft_2-1738569390342.png

Create a measure as the visual level filter.

Measure = 
VAR _SEL=MAX('Table'[Area])
RETURN
IF(ISFILTERED('Table (2)'[Area]),
IF(_SEL in ALLSELECTED('Table (2)'[Area]),1)
,IF(_SEL="Overall",1))

Put the measure into the filters of the table visual.

vstephenmsft_3-1738569456949.png

As you can see, if there's no selection from the slicer, the overall part appears.

If you select A or B, the corresponding part appears.

vstephenmsft_4-1738569548050.png

vstephenmsft_5-1738569554659.png

I just demonstrate how to achieve the effect of slicer selection, and the real data in the table visual needs to be calculated and put into it yourself.

 

 

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

 

Hi @Anonymous thank you very much for the reply. work as i need.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors