Forum Discussion
Date Filter: unexpected results
Hi. I am trying to figure out this strange issue. I have an accounts table, date table, code-mapping table, Loc_Dim. I am using a clustered bar chart to plot the YTD accounts opened by line of business, which is coming from the Loc_Dim table. I calculate the YTD accounts opened as below:
1 Reply
- amitchandak
Super User
yasbos , Hop open date is joined with Calendar_Dim , then you can have measure like
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))
Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s