Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am trying to modify the following DAX so that it will work with my filter for brand. Currently, it will calculate for all brand but not for each brands seperately.
Filtered by Brand
Solved! Go to Solution.
BookingWTDCurrent =
VAR _CurrentDate = SELECTEDVALUE(DSH_DAILY_BOOKINGS_GRAPH[REQUEST_DATE] )
VAR _CurrentWeekYear = SELECTEDVALUE(DSH_DAILY_BOOKINGS_GRAPH[WeekNo])
RETURN
CALCULATE(
'Daily Bookings RY'[RY BKGS],
ALLEXCEPT(DSH_DAILY_BOOKINGS_GRAPH[Brand]),
DSH_DAILY_BOOKINGS_GRAPH[WeekNo] = _CurrentWeekYear,
DSH_DAILY_BOOKINGS_GRAPH[REQUEST_DATE] <= _CurrentDate )
BookingWTDCurrent =
VAR _CurrentDate = SELECTEDVALUE(DSH_DAILY_BOOKINGS_GRAPH[REQUEST_DATE] )
VAR _CurrentWeekYear = SELECTEDVALUE(DSH_DAILY_BOOKINGS_GRAPH[WeekNo])
RETURN
CALCULATE(
'Daily Bookings RY'[RY BKGS],
ALLEXCEPT(DSH_DAILY_BOOKINGS_GRAPH[Brand]),
DSH_DAILY_BOOKINGS_GRAPH[WeekNo] = _CurrentWeekYear,
DSH_DAILY_BOOKINGS_GRAPH[REQUEST_DATE] <= _CurrentDate )
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
109 | |
102 | |
98 | |
38 | |
37 |
User | Count |
---|---|
152 | |
125 | |
75 | |
74 | |
63 |