Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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 October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
90 | |
83 | |
76 | |
64 |
User | Count |
---|---|
142 | |
112 | |
98 | |
98 | |
94 |