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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Remove filter for Specific Measure or field

Hi,

 

I have a Visual like below, Whenever the Select Store and Division will filter out -Table column Store and Division only need to filter and Overall need not to be filter.

Overall Fields needs to remain same eventhough if we filter anything .It will not take any filter.Please help here.

 

mogunase1_0-1625575139776.png

Thanks,

Mohanraj

 

@amitchandak@Jihwan_Kim @Fowmy 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on my test, you need to create a new table for slicer like this:

ForSlicer = DISTINCT(SELECTCOLUMNS('Table',"Select Store",[Store],"Division",[Division]))

Then create a flag measure (when values matched , set as 1):

Flag = IF(MAX('Table'[Store]) in ALLSELECTED('ForSlicer'[Select Store]) && MAX('Table'[Division])in ALLSELECTED('ForSlicer'[Division]) ,1)

Now could find the matched row according to the flag measure:

Store Measure = CALCULATE(MAX('Table'[Store]),FILTER('Table',[Flag]=1))
Division Measure = CALCULATE(MAX('Table'[Division]),FILTER('Table',[Flag]=1))

The final output is shown below:

dynamic slicer effect table.PNG

Best Regards,
Eyelyn Qin
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

8 REPLIES 8
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on my test, you need to create a new table for slicer like this:

ForSlicer = DISTINCT(SELECTCOLUMNS('Table',"Select Store",[Store],"Division",[Division]))

Then create a flag measure (when values matched , set as 1):

Flag = IF(MAX('Table'[Store]) in ALLSELECTED('ForSlicer'[Select Store]) && MAX('Table'[Division])in ALLSELECTED('ForSlicer'[Division]) ,1)

Now could find the matched row according to the flag measure:

Store Measure = CALCULATE(MAX('Table'[Store]),FILTER('Table',[Flag]=1))
Division Measure = CALCULATE(MAX('Table'[Division]),FILTER('Table',[Flag]=1))

The final output is shown below:

dynamic slicer effect table.PNG

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

Anonymous
Not applicable

Hi,

 

Thanks for your help.

But in this case all the 3 measure are based on same filed .

Dax are - 

1.) Store = CALCULATE(DISTINCTCOUNT(Table[Incident ID]),FILTER(Table,Table[Store]=SELECTEDVALUE(Table[Store])))
 
2.)Division= CALCULATE(DISTINCTCOUNT(Table[Incident ID]),FILTER(Table,Table[Division]=SELECTEDVALUE(Table[Division])))

 

3.) Overall ---- I need to Calculate D.Count of Incident id without any filter.

 

This 3 i need to mention in same table.

 

If i filter Store and Division , Store and Division measure only need to change and Overall measure always needs to be same.

 

Please help here.

 

Thank you.

 

@selimovd 

Hey @Anonymous ,

 

I gave you a proposal for measure 3 [Overall].

Did you try that? Did it work?

 

Best regards

Denis

Anonymous
Not applicable

Hi ,

 

You gave me this,

My Overall Measure =
CALCULATE(
    SUM( myTable[Overall] ),
    ALL( StoreTable[Store] ),
    ALL( DivisionTable[Division] )
)

 But there is no Column like Store and Division.Not able to create Cal.Column also.

 

 

All the 3(Store,division and Overall) based on calculation of single column (#Incident id column)

 

So i tried below , but doesnt work.

Overall = CALCULATE(DISTINCTCOUNT(Table[Incident ID]),ALL(Table[Incident ID]))

 

Thanks,

Mohanraj

 

@selimovd 

@Anonymous Then what are your slicers? They are not based on columns?

Anonymous
Not applicable

Hi,

 

Slicers are based on column.

 

For Overall as you mentioned i put 

Overall = CALCULATE(DISTINCTCOUNT(Table[Incident ID]),ALL(Table[Store]),ALL(Table[Division]))
 
But,the result are like below,
 
mogunase1_0-1625673131514.png
But i need like below, 
mogunase1_1-1625680108427.png

 

My Requirement is Overall column need not to be filter out based on slicer, Also all the row item need to show.
 
Thanks,
Mohanraj
 

Hey @Anonymous ,

 

what is the "Status" we see in the table? This should not disappear.

Can you share the file with me? It seems easier to take a look directly in your data.

 

Best regards

Denis

selimovd
Super User
Super User

Hey @Anonymous ,

 

in the overall measure you have to exclude the slicers for Store and Division. Try the following approach:

My Overall Measure =
CALCULATE(
    SUM( myTable[Overall] ),
    ALL( StoreTable[Store] ),
    ALL( DivisionTable[Division] )
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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