I am trying to compare the evolution of Sales in a different range of data selected in two different slicers. Specifically I want to compare the sales evolution of this year spring break versus sales evolution of last year spring break. The thing is that spring break is never on the same date so I can not use Time Intelligence functions.
So far I have created two calendar tables, connected by an inactive relationship. This way I can calculate KPIs for these two periods but I can not represent it in a Line Chart.
using the following DAX parameters:
Total Sale CATE COMP =
CALCULATE(
SUMX(‘Spring Break Sales’, ‘Spring Break Sales’[Sales ]),
ALL(Dates[Date]),
USERELATIONSHIP(Dates[Date], ‘Dates Comp’[Date])
)
Total Sale DATE =
SUMX(‘Spring Break Sales’, ‘Spring Break Sales’[Sales ])
I need it both lines to overlap. I need same behaviour of DATEADD but instead of using fixed time period (-1 Year) using the period selected on the secondary date slicer (orange one)
and using the second slicer to create a new table with additional columns that has a date plus one year (reporting teh dates filtered from the seond slicer)?
did you try this method?
OK
why then not using the grouping by Dayof the Week, if this is what you need
get the result as below comparing the overall, one by date filter and one from date comp filter
@judy_fmf The way you have shown line & Are charts are absolutely creative. For now, doesn’t seem to find any other way of presenting the information in line charts but if in the future I could design a custom visual like that, I would certainly let you know.