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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors