The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I have a report that is showing data on a week number basis. I have two slicers that allow me to select the year & week.
The data below shows the sales stats only within that week.
But I would like to add a few year-to-date measures to that report page, which start from the selected year until the last day of the week.
My plan is to create a table visual that has only has an interaction with the year slicer, but not with the week slicer.
But then I still nead to create a YTD measure that somehow limits the calculation up to max(week_slicer).
Any ideas of how I could accomplish this?
Solved! Go to Solution.
Actually, I think I just figured it out, but perhaps you could help me guide on whether that is the ideal way of doing it.
I created the following measure:
YTD - Total Revenue = var selected_week = MAX(BasicCalendarEnglishDynamic[ISO WeekNumber]) RETURN CALCULATE(SUM('IS Orders'[TotalDue]), ALL(BasicCalendarEnglishDynamic[ISO WeekNumber]), BasicCalendarEnglishDynamic[ISO WeekNumber] <= selected_week)
And I abondoned my initial idea of disabling interaction for that specific visiual.
Actually, I think I just figured it out, but perhaps you could help me guide on whether that is the ideal way of doing it.
I created the following measure:
YTD - Total Revenue = var selected_week = MAX(BasicCalendarEnglishDynamic[ISO WeekNumber]) RETURN CALCULATE(SUM('IS Orders'[TotalDue]), ALL(BasicCalendarEnglishDynamic[ISO WeekNumber]), BasicCalendarEnglishDynamic[ISO WeekNumber] <= selected_week)
And I abondoned my initial idea of disabling interaction for that specific visiual.
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |