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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help with blank values in slicer

 Hey all,

 

I have a dataset from my 'Areas' table like so:

 

Capture.JPG

 

I'm trying to use the Slicer visual (the out the box one in Power BI) but with a hierarchy for the different area levels.

However, when I add the values, I get a series of (Blank) values in the slicer as well, like so:

 

Capture2.JPG

When I try to filter out (Blank) it in turn removes any area levels that have a blank, so my slicer cannot be used:

 

Capture3.JPG

 

Any tips on how I can fix this?

12 REPLIES 12
v-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

Anonymous
Not applicable

I wouldn't say my problem has been solved - a workaround has been presented but not the solution I'm looking for 😞

v-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

I build two tables related by AreaSK columns (Many to one )like yours to have a test.

Area Table:

1.png

Workitem Table:

2.png

Relationship:

3.png

Build a hierarchy slicer by different arealevels.

Due to your type of your arealevel is Text, is blank or is not blank is not useful.

You can change the Filter Type in Arealevel3 to Basic filtering, then click select all and click blank again, so you can filter out the blank value in your slicer.

Default:

4.png

Filter out blank value.

5.png

Or you can filter out blank value in Power Query Editor directly.

6.png

The result is the same as above.

You can download the pbix file from this link: Help with blank values in slicer

 

Best Regards,

Rico Zhou

 

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

Anonymous
Not applicable

Thanks but that is not like the scenario I am dealing with 😕 

 

If you see in my image there are some AreaLevel2 values that do not have an AreaLevel3 (see BRS OU or Conflict Management)...

Hi @Anonymous 

I changed my data model.

1.png

I think you want to hide the blank value without impact the hierachy structure. Ex: Remove blank and still show C in arealevel2.

You may try Hierachy Slicer in custom visual.

2.png

Select Empty in Hide Members and trun on the string are empty.

3.png

Result:

4.png

If this reply still couldn't help you solve your problem, please share your pbix file by your Onedirve for Business.

And you can provide me with the screenshot of the result you want.

You can download my pbix file from this link: Help with blank values in slicer

 

Best Regards,

Rico Zhou

 

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

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Are there any relationships on this table with some other table?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

amitchandak
Super User
Super User

@Anonymous , there is an option there is not blank. Use that do not use contains

 

Blank filter.png

Anonymous
Not applicable

@amitchandak Ah good spot. I tried that though and it did not work 😞

 

@Pragati11 it has a relationship with a table of items 'WorkItems Completed' (the slicer filters them), they have the following relationship:

 

Capture4.JPG

Hi @Anonymous ,

 

Can you try one thing at your end please:

Create a manual hierarchy in your AREAS table which has got all the 3 columns used in slicer.

 

Under Fields Pane, Ricght-Click on your Area1 column and select New Hierarchy as shown below:

Pragati11_0-1599135351811.png

 

Once you do this a new hierarchy will be created in your table.

Add Area2 and Area 3 column to this hierarchy (by right-clicking on them and using option ADD TO HIERARCHY) in the order you want them to be in the slicer.

Area1 -> Area2 -> Area3

 

Now try to move this hierarchy to your slicer and check if you still have blanks.

 

Let me know how you get with this.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hey @Pragati11 thanks for the suggestion, sadly this didn't completely work. I still get blanks and when filtering out blanks it then has the same adverse effect 😞

Hi @Anonymous ,

 

I just tested similar scenario at my end, looks like this will not work.

Let me give a thought on this. It looks tricky as BLANKS are in your data.

Can't you replace BLANKS with something like UNKNOWN in data?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Unfortunately not - that would confuse the end user 😞

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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