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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Get Switch search column in matrix to show zero

I have a calculated column :

Area grouping = 
SWITCH(
TRUE(),
SEARCH("ERHB",'Events'[Health Board],,0)=1,"East",
SEARCH("MHB",'Events'[Health Board],,0)=1,"Midlands",
SEARCH("MWHB",'Events'[Health Board],,0)=1,"MidWest",
SEARCH("NEHB",'Events'[Health Board],,0)=1,"NorthEast",
SEARCH("NWHB",'Events'[ Health Board],,0)=1,"NorthWest",
SEARCH("SEHB",'Events'[Health Board],,0)=1,"SouthEast",
SEARCH("SHB",'Events'[Health Board],,0)=1,"South",
SEARCH("WHB",'Events'[Health Board],,0)=1,"West")
However when I pulled this into columns in my matrix it shows the correct values and blank values.
 
I have tried an IF FILTER to get blank values to change to 0 but no luck is there something I'm missing
 
 
3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Has the problem be solved? I tried to download the file but it was deleted.

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , Add +0 to measure

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Tried adding + 0 on measure but still blank values appear.

 

See attached

https://www.dropbox.com/s/dy26rb1wdfra8p8/Zero%20sample.pbix?dl=0

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 Kudoed Authors