Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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?
Solved! Go to Solution.
Hi @Karthik12 ,
I created some data:
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.
3. Result:
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
Hi @Karthik12 ,
I created some data:
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.
3. Result:
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
@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 !
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |