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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
mmparvez
Frequent Visitor

Slicer doesn't show column with zero value

I have a simple table

mmparvez_0-1698712646919.png

A matrix with a slicer shows: 

mmparvez_1-1698712735814.png

But on the 20 January it shows only male: 

mmparvez_2-1698712813592.png

But i like to see it with "F" column with 0 values. How can i do that?

1 ACCEPTED SOLUTION

 

Just wrap it around the main expression:

YTD = TOTALYTD(
   IF(ISBLANK(SUM('Sheet1'[Value]),0,SUM(Sheet2[Value]))
  ,'Sheet1'[Date].[Date]
  ,'Sheet1'[Date]<= SELECTEDVALUE(Sheet1[Date])
)

 

View solution in original post

7 REPLIES 7
Data-estDog
Resolver II
Resolver II

Try this: CLick on the matrix. Click on the V next to fields you want to show

DataestDog_0-1698714921558.png

 

I did:

mmparvez_0-1698715181829.png

But the result is same.

Then you have two options. Separate the Sex column into its own dimension:

DataestDog_0-1698716806310.png

 

Or fill in the missing entries with Zeros

I split into separate Dimension and it works: 

DataestDog_1-1698716868470.png

Matrix Settings:

DataestDog_2-1698716895836.png

 

Well.. doesn't show a 0... just blank. 

 

Be sure to mark as solution if this provided the answer. 

Thanks @Data-estDog . But on YTD shows no value for F.

 

YTD = TOTALYTD(SUM('Sheet1'[Value]), 'Sheet1'[Date].[Date], 'Sheet1'[Date]<= SELECTEDVALUE(Sheet1[Date]))

 

mmparvez_0-1698718905754.png

 

Fair enough. One more trick. Instead of adding an implicit measure, add and explicit measure and correct for isblank: 

DataestDog_0-1698721327309.png

 

Can you please explain. How can i do it with YTD measure? YTD of 20 January should show the F value 30 not 0.

 

Just wrap it around the main expression:

YTD = TOTALYTD(
   IF(ISBLANK(SUM('Sheet1'[Value]),0,SUM(Sheet2[Value]))
  ,'Sheet1'[Date].[Date]
  ,'Sheet1'[Date]<= SELECTEDVALUE(Sheet1[Date])
)

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.