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
dax_bi
Helper I
Helper I

Cannot hide slicer on powerbi web

Hi All,

 

I am not able to hide a slicer on the web, it works well on the Powerbi desktop but not on the powerbi web

the below screenshot is from the PBI desktop 

dax_bi_0-1634734159870.png

the below screenshot is after publishing to web

dax_bi_1-1634734204080.png

 

i have used the below code to get the MTD/YTD selection 

 

MTD/YTD Selection =
VAR TodayDate = TODAY()
VAR YearStart = CALCULATE(STARTOFYEAR('dates'[Date]), YEAR('dates'[Date]) = YEAR(TodayDate) )
VAR MonthStart = CALCULATE(STARTOFMONTH('dates'[Date]), YEAR('dates'[Date]) = YEAR(TodayDate), MONTH('dates'[Date]) = MONTH(TodayDate) )
VAR MonthEnd = CALCULATE(ENDOFMONTH('dates'[Date]), YEAR('dates'[Date]) = YEAR(TodayDate), MONTH('dates'[Date]) = MONTH(TodayDate) )
VAR Result =
UNION(
ADDCOLUMNS(
CALENDAR( TodayDate, TodayDate ),
"Selection", "TODAY",
"Order", 1
),
ADDCOLUMNS(
CALENDAR( MonthStart, TodayDate ),
"Selection", "MTD",
"Order", 2
),
ADDCOLUMNS(
CALENDAR( MonthStart, MonthEnd ),
"Selection", "FULL MONTH",
"Order", 3
),
ADDCOLUMNS(
CALENDAR( YearStart, TodayDate ),
"Selection", "YTD",
"Order", 4
),
ADDCOLUMNS(
CALENDAR(MIN('dates'[Date]),MAX('dates'[Date])),
"Selection", "CUSTOM",
"Order", 5
)
)
Return Result

 

also created the below measure to hide the slicer, so when its 1 ( when custom is selected ) the slicer should be visible else hidden like its in the PBI desktop.

Date Slicer filter =
INT(SELECTEDVALUE('MTD/YTD Selection'[Selection]) = "Custom")

 

Thank you for your time. Hopefully, someone can help me.

7 REPLIES 7
Anonymous
Not applicable

Hi @dax_bi ,

 

How do you hide the slicer when the "Custom" was selected?

 

Best Regards,

Jay

Hi @Anonymous 

 

The slicer becomes visible ( Dates are visible or selection )  when CUSTOM is selected. 

dax_bi_0-1635422259999.png

when you click buttons TODAY, MTD, FULL MONTH, YTD you will see like the below 

dax_bi_1-1635422329070.png

Now when you go to the next Page ( another sheet on the PBI ) and come back to the slicer page it will show like the below, the slicer becomes in visible on the PBI desktop. 

dax_bi_2-1635422399484.png

Now after you publish on the web it shows like the below, you see "0" now which was not like this before. The web after publishing doesnt show the same like on the PBI desktop now.

dax_bi_3-1635422457419.png

Im not ableto upload the .pbix file here so please download the file from the we transfer link below for reference. 

https://we.tl/t-zNTMeCHAq0

 

 

Anand24
Super User
Super User

@Hi @dax_bi ,
Just place a rectangle to hide the slicer and publish it again.

 

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

Hi @Anand24 

 

Thankyou for your reply, but Im not sure i understood correctly can you show me how on the PBI attached on the link 

 

https://we.tl/t-lvSJgOl5iz

Hi @dax_bi ,
I'm not able to download the pbix you attached.
However, PFA pbix with what I wanted to convey.

 

I have 2 date slicers and the left side slicer in this pbix is hidden by using an overlapping white rectangle.

 

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

GilbertQ
Super User
Super User

Hi @dax_bi 

 

As far as I know it is not possible to hide the slicers?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ , 

 

It was working before, the slicer was showing the same as of the PBI desktop before. 

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