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 All ,
How to implement the below tableau logic in Power BI.
if OrderDate >= DATETRUNC('WEEK',TODAY()) AND OrderDate<= TODAY() then sum(sales) END
Here DATETRUNC('WEEK',TODAY()) ----> Will get the starting date of the week (9/10/2017)
TODAY()---> will get the today's date .
Thanks,
DK.
Solved! Go to Solution.
HI @dk_24,
You can use below formula to get the week start date.
WeekStart = [Date] + (1 - WEEKDAY([Date],1))
For your scenario, it will be modified like:
WeekStart = TODAY() + (1 - WEEKDAY(TODAY(),1))
Regards,
Xiaoxin Sheng
HI @dk_24,
You can use below formula to get the week start date.
WeekStart = [Date] + (1 - WEEKDAY([Date],1))
For your scenario, it will be modified like:
WeekStart = TODAY() + (1 - WEEKDAY(TODAY(),1))
Regards,
Xiaoxin Sheng
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |