cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Blank value should be displayed irrespective any selection in the slicer.

Hi All,

 

I have an requirement where we have to Display blank value irrespective of any slicer selection.

 

For eg:

 

NameSeasonCropMeasure
DakshuSummer1
ViyanWinter3
Kanna  

Slicer is season which contains summer,winter and blank, Whereas if I select Summer I need the result set as mentioned below

NameSeasonCropMeasure
DakshuSummer1
Kanna  

If I select Winter then the result should dispaly as mentioned below.

 

NameSeasonCropMeasure
ViyanWinter3
Kanna  

 

Is this possible,If yes please let me know.

 

Thanks

Vannikannan.k

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Blank value should be displayed irrespective any selection in the slicer.

Hi @Vannikuthalam ,

 

We can create a table that only contains season and a measure to replace name to meet your requirement.

 

1. Use DISTINCT function to create a calculate table, there is no relationship between two tables.

 

Table 2 = DISTINCT('Table'[Season])

 

Blank1.jpg

 

2. Then we can create a measure.

 

Measure = 
var selected_ = SELECTEDVALUE('Table 2'[Season])
var x = CALCULATE(MAX('Table'[Name]),FILTER('Table','Table'[Season]=BLANK()))
var y = CALCULATE(MAX('Table'[Name]),FILTER('Table','Table'[Season]=selected_||'Table'[Season]=BLANK()))
var z = IF(ISBLANK(selected_),x,y)
return
IF(HASONEFILTER('Table 2'[Season]),z,CALCULATE(MAX('Table'[Name])))

 

3. At last we create a slicer using Table 2[season] and the result like this,

 

blank4.jpg

 

blank3.jpg

 

blank2.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

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

3 REPLIES 3
Highlighted
Super User IV
Super User IV

Re: Blank value should be displayed irrespective any selection in the slicer.

@Vannikuthalam , Try a measure with +0

 

Or this option in Visual

Shareapps.png

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Super User IV
Super User IV

Re: Blank value should be displayed irrespective any selection in the slicer.

@Vannikuthalam you have a to create a separate table for slicer which is not linked to your data table and then use that table in the measure to filter selected season and blank season






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Community Support
Community Support

Re: Blank value should be displayed irrespective any selection in the slicer.

Hi @Vannikuthalam ,

 

We can create a table that only contains season and a measure to replace name to meet your requirement.

 

1. Use DISTINCT function to create a calculate table, there is no relationship between two tables.

 

Table 2 = DISTINCT('Table'[Season])

 

Blank1.jpg

 

2. Then we can create a measure.

 

Measure = 
var selected_ = SELECTEDVALUE('Table 2'[Season])
var x = CALCULATE(MAX('Table'[Name]),FILTER('Table','Table'[Season]=BLANK()))
var y = CALCULATE(MAX('Table'[Name]),FILTER('Table','Table'[Season]=selected_||'Table'[Season]=BLANK()))
var z = IF(ISBLANK(selected_),x,y)
return
IF(HASONEFILTER('Table 2'[Season]),z,CALCULATE(MAX('Table'[Name])))

 

3. At last we create a slicer using Table 2[season] and the result like this,

 

blank4.jpg

 

blank3.jpg

 

blank2.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors