The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 !
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
124 | |
111 | |
78 | |
78 |