Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
I have written a dateadd() to find the dates for the last month. The formula is:
Dates add = CALCULATE([Total Sales],DATEADD('Date Table'[Date],-1,MONTH))
The problem is it gives few data correct and few incorrect. How do i correct it?
Please see the screenshot:
@PradipMCT,
Which table do the first two columns come from? Could you please share sample data of your table for us to analyze?
In my scenario, dateadd function works as expected, and the first two columns come from Date table, you can check the following screenshot.
Regards,
Lydia
| User | Count |
|---|---|
| 58 | |
| 44 | |
| 31 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 77 | |
| 66 | |
| 44 | |
| 24 | |
| 22 |