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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Karthik12
Helper V
Helper V

Skip Sunday in last day production report

Hello Team,

Every monday I am facing an issue with my production report as it shows "blank" in all fields since I have added page filter as "in the last 1 day". Since last 1 day is sunday, It shows like this.

 

May I know how to skip sunday and shows last production day i,e Saturday report ? Can anyone support me to solve this?

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Karthik12 ,

I created some data:

vyangliumsft_0-1666941561599.png

Here are the steps you can follow:

1. Create measure.

Flag =
var _maxxdate=MAXX(ALL('Table'),[Date])
return
IF(
WEEKDAY(_maxxdate,2)=7&&MAX('Table'[Date])=_maxxdate-1,1,
IF(
    WEEKDAY(_maxxdate,2)<>7&&MAX('Table'[Date])=_maxxdate,1,0))

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1666941561603.png

3. Result:

vyangliumsft_2-1666941561604.png

 

Best Regards,

Liu Yang

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

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @Karthik12 ,

I created some data:

vyangliumsft_0-1666941561599.png

Here are the steps you can follow:

1. Create measure.

Flag =
var _maxxdate=MAXX(ALL('Table'),[Date])
return
IF(
WEEKDAY(_maxxdate,2)=7&&MAX('Table'[Date])=_maxxdate-1,1,
IF(
    WEEKDAY(_maxxdate,2)<>7&&MAX('Table'[Date])=_maxxdate,1,0))

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1666941561603.png

3. Result:

vyangliumsft_2-1666941561604.png

 

Best Regards,

Liu Yang

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

amitchandak
Super User
Super User

@Karthik12 , Create a column in your date table

 

Switch(

[Date] = Today()-1 && weekday(Today()-1,1) <> 1, 1,

[Date] = Today()-2 && weekday(Today()-1,1) = 1,1 ,

0)

 

Ise as page level filter and filter for value =1

@amitchandak Thanks for your time to suport me.

I have done. It looks some issue (please refer the attached screenshot)

 

Thanks !

Sunday skip.png

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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