Hi,
I have the below SQL query which needs to be built in PBI. If i can add a column it would filter a lot of unnecessary data. How would you go about it?
FROM [dbo].[Operations_LETTERS_SENT_YTD]
WHERE DATEDIFF(dd, DATEADD(dd, 0, DATEDIFF(dd, 0, [DT_LETTER_SENT])),DATEADD(dd, -1, GETDATE())) <= 30
ORDER BY CAST([DT_LETTER_SENT] AS DATE), [LETTER_CODE]
I have the below SQL query which needs to be built in PBI. If i can add a column it would filter a lot of unnecessary data. How would you go about it?
FROM [dbo].[Operations_LETTERS_SENT_YTD]
WHERE DATEDIFF(dd, DATEADD(dd, 0, DATEDIFF(dd, 0, [DT_LETTER_SENT])),DATEADD(dd, -1, GETDATE())) <= 30
ORDER BY CAST([DT_LETTER_SENT] AS DATE), [LETTER_CODE]