cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ThomasDay Member
Member

visual filter problem--unpredictable behavior

Hello fellow Daxer's

 

I am displaying 2 text columns, each in it's own visual from a file that I'm filtering using a slicer via a relationship.  I slice the "one" side...and get one record for each year in the related file.  Easy enough.

Photo 1 shows one of the table visuals, filtered by ProviderSlicerCount is 1.  Perfect

Photo 2 shows the other identical visual (different column), filtered by ProviderSlicerCount is 1...and it's weird.

Photo 3 shows the bins so you can see the filter

Photo 4 shows the dax for the ProviderSliderCount

Photo 5 shows that weird visual when I also put the ProviderSliderCount as a field in the table...and it appears as a row??? That doesn't happen with the first one.

 

And this morning I got a frown but only when I put the ProviderSliderCount in as a field.  Any thoughts/workarounds?

Capture.PNGCapture1.PNGCapture3.PNGCapture4.PNG

Capture2.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: visual filter problem--unpredictable behavior

ThomasDay Member
Member

Re: visual filter problem--unpredictable behavior

Hey @Sean, I ended up using @kelly4dm's suggestion in the thread you referenced since it gets to the issue of making ONE selection.  If there are multiple boxes checked, the slicer check is N.  His and your solutions are very clever!   Thanks to everyone as always! Tom

8 REPLIES 8
Highlighted
ThomasDay Member
Member

Re: visual filter problem--unpredictable behavior

The purpose of the measure--and the reason it's used as an "on the fly" filter is to restrict showing info until a valid selection is made.  That means that until a facility is selected via the slicer (and ONLY ONE facility is selected)--the details in the visuals should not show.   So the ProviderSlicerCount measure is 1--show things, if not 1--don't. 

Screenshot 1--when a selection is made...all is well and info works well.

Screenshot 2--when a selection has not been made--nothing should show...and that's the problem.

 

Does that help size up the issue anyone?  Ideas?  Thanks, Tom

 

Capture.PNGCapture1.PNG

 

Super User
Super User

Re: visual filter problem--unpredictable behavior

@ThomasDay Having a hard time following this one. the dax formula is cut off.. is it possible that somehow the filter is only applying to one part of the fact table based on the measure?

Near SE WI? Join our PUG MSBIWI
ThomasDay Member
Member

Re: visual filter problem--unpredictable behavior

Hi @Seth_C_Bauer--that's the whole filter formula.  The slicer selects a provider from the provider table.  The filter counts the rows in the providertable and if that's one--as in one row, then the details on the visuals are OK to display.  If the slicer has been cleared, the row count will be large, and if more than one is picked, it's not one.  And perhaps there's a time when there are no rows displayed but I can't think of when.

 

The row count is of the table that the slicer is attached to...so I'm not sure how it might be applying to one part of the fact table.  That help?

Super User
Super User

Re: visual filter problem--unpredictable behavior

Hi @ThomasDay

Try this

 

providerslicercount= If(ISFILTERED(HospProviders[SLICERFIELD]);COUNTROWS(HospProviders))




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

Proud to be a Datanaut!




ThomasDay Member
Member

Re: visual filter problem--unpredictable behavior

That's a great idea!  I'll try it.  Tom

Super User
Super User

Re: visual filter problem--unpredictable behavior

ThomasDay Member
Member

Re: visual filter problem--unpredictable behavior

Hey @Sean, I ended up using @kelly4dm's suggestion in the thread you referenced since it gets to the issue of making ONE selection.  If there are multiple boxes checked, the slicer check is N.  His and your solutions are very clever!   Thanks to everyone as always! Tom

Super User
Super User

Re: visual filter problem--unpredictable behavior

@ThomasDay Great! We are in the mid-90s pushing 100 - and I'm about take my own advice... Smiley LOL