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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ashicool_10061
Helper III
Helper III

Visible Report Based on Weekend and Weekdays

Hi There,

 

I am stuck in one problem where my requirement is if its weeken my report will only show page for Weeknd, IF its Saturday my report page should only be visible for Saturday and other days report page should be hidden and if its Sunday then my weekdays and Saturday report page should be hidden.

 

IS there anything we can do to create a report page like this?

 

Eg if i am opening report on Monday to Friday ,Only Weekday Page should appear :

ashicool_10061_0-1726842789128.png

If its Saturday then only "Saturday" page will open:

ashicool_10061_1-1726842820162.png

If Sunday then Only "Sunday" page should open rest other page should be hide:

ashicool_10061_2-1726842854481.png


Can anyone help me in reaching this?

 

Thanks in advance!

Ashish

@SamWiseOwl  

@Ashish_Mathur 

@amitchandak 




2 ACCEPTED SOLUTIONS
SamWiseOwl
Super User
Super User

Hi @ashicool_10061 

 

I don't believe you can hide pages.

 

Instead you could have buttons whose text and action is based on the day of the week.

Button destination =

Switch(
true()
,Weekday(Today(),2) < 6 --If weekday
,"Weekdays"
,Weekday(Today(),2) = 6
,"Saturday"

,"Sunday")

Use this for the button destination and the button text


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

Anonymous
Not applicable

Hi @ashicool_10061 ,

 

As SamWiseOwl  said page level security is not possible. But there is an alternative for you to consider:

(1) This is my test data.

vtangjiemsft_0-1727073282872.png

(2) We can create two columns.

 

Weekday = WEEKDAY([Date],2)
Column = IF([Weekday]<=5 && [Weekday]>1,1,[Weekday])

 

(3) Click Manage Roles on the Modeling tab.

 

 

var _a=WEEKDAY(TODAY(),2)
var _b=SWITCH(TRUE(),
_a<=5 && _a>=1,1,
_a=6,6,
_a=7,7)
RETURN [Column]=_b

 

vtangjiemsft_1-1727073444977.png

(4) View as "Untitled".

vtangjiemsft_2-1727073500201.png

vtangjiemsft_3-1727073537120.png

Today is Monday, so output the data for Monday through Friday. For more information about RLS you can refer to:

Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @ashicool_10061 ,

 

As SamWiseOwl  said page level security is not possible. But there is an alternative for you to consider:

(1) This is my test data.

vtangjiemsft_0-1727073282872.png

(2) We can create two columns.

 

Weekday = WEEKDAY([Date],2)
Column = IF([Weekday]<=5 && [Weekday]>1,1,[Weekday])

 

(3) Click Manage Roles on the Modeling tab.

 

 

var _a=WEEKDAY(TODAY(),2)
var _b=SWITCH(TRUE(),
_a<=5 && _a>=1,1,
_a=6,6,
_a=7,7)
RETURN [Column]=_b

 

vtangjiemsft_1-1727073444977.png

(4) View as "Untitled".

vtangjiemsft_2-1727073500201.png

vtangjiemsft_3-1727073537120.png

Today is Monday, so output the data for Monday through Friday. For more information about RLS you can refer to:

Row-level security (RLS) guidance in Power BI Desktop - Power BI | Microsoft Learn

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

Hi @Anonymous 

 

Thank you for this suggestion . I will look into this .

 

Thanks,

Ashish

SamWiseOwl
Super User
Super User

Hi @ashicool_10061 

 

I don't believe you can hide pages.

 

Instead you could have buttons whose text and action is based on the day of the week.

Button destination =

Switch(
true()
,Weekday(Today(),2) < 6 --If weekday
,"Weekdays"
,Weekday(Today(),2) = 6
,"Saturday"

,"Sunday")

Use this for the button destination and the button text


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hi @SamWiseOwl ,

 

Appreicate  your help . I will try if this will for for me.

 

Thank you for your help.

Ashish

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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