Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I new to PBI and am in need of a little help
I currently have a chart that shows all orders raised Yesterday.
This works great, however on a monday I would like yesterday to include Friday- Saturday and Sunday as one day
any help would be great
thank you
Hi @Anonymous,
try with this:
OrderRaisedYesterday := IF ( WEEKDAY ( TODAY (), 2 ) = 1, ( CALCULATE ( [Order], Calendar[Date] = TODAY () - 1 ) + CALCULATE ( [Order], Calendar[Date] = TODAY () - 2 ) + CALCULATE ( [Order], Calendar[Date] = TODAY () - 3 ) ), ( CALCULATE ( [Order], Calendar[Date] = TODAY () - 1 ) ) )
Regards
Chiara
@Anonymous
Maybe a formula like the following could help.
This is a calculated column which returns the DayNames of the week Mon, Tue, Wed, Thu, Combined_Date
Combined_Date includes Friday, Saturday and Sunday.
When today's date is Monday it shows the daynames with the combined date otherwise all 7 daynames of the week.
You should then add tis column to the chart
I hope it makes sense:
Calculated Column = IF ( FORMAT ( TODAY (), "DDD" ) = "Mon" && FORMAT ( Table[Date], "DDD" ) IN { "Fri", "Sat", "Sun" }, "Combined_Date", FORMAT ( Table[Date], "DDD" ) )
Hi @Anonymous
Can you share some data for better understanding. Please go through this post to get your issue resolved fast.
Regards
Affan
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |