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 Guys,
I was trying to create a comparison between current month & last month sales based on the same weekdays.
For Eg:
When we use Dateadd with month we are comparing 01-02-2022 with 01-01-2022 .
In my scenario i want to compare,
If 01-02-2022 is a tuesday, i want to compare it with the first tuesday of previous month. ie 04-01-2022.
Any idea?
@sangeethray , The best you can do is 28 days behind
week month behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-28,DAY))
@amitchandak I already tried this. But in that case the comparison not accurate when i compare any dates after 29th. It will compare the same month in that scenario.
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 |
---|---|
111 | |
94 | |
83 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |