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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.