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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
mogunase1
Helper III
Helper III

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
v-eqin-msft
Community Support
Community Support

Hi @mogunase1 ,

 

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
v-eqin-msft
Community Support
Community Support

Hi @mogunase1 ,

 

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.

mogunase1
Helper III
Helper III

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 @mogunase1 ,

 

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

Did you try that? Did it work?

 

Best regards

Denis

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 

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

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 @mogunase1 ,

 

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 @mogunase1 ,

 

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.