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

Show blank visuals if no value selected in Slicer

Hello All,

I am trying to build a report on perticualr data which is having mutliple project id's.

I have used Chicklet slicer for selection of projects and according to that i tried to build a report.

I would like to know that, can we show blank visuals if no project id is choosed rather than showing all cumulative values of all the projects when no project id is choosed(by default feature).

I have tried below dax measure

 

Slicerselection = if(calculate(distinctcount('tablename'[PROJECTID]),allselected('tablename'[PROJECTID]))=1,"Y","N")

and i put this measure in every visuals, Visual Level Filter and mentioned Show items when the value is: Contains Y.

Its working fine but for only when i choose single project id.

If i choose multiple project id then it's not working, shows blank visuals.

Please suggest me.

Mohan V

1 REPLY 1
himanshu56
Resolver II
Resolver II

You can use blank() function

 

CALCULATE (
IF (
CALCULATE ( tablename[projectid] ) = BLANK (),
0,
CALCULATE ( tablename[projectid])
)

 

Thanks,

Himanshu

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.

Top Solution Authors