Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello all! I need help with a DAX measure that averages the latest end time of a job by seller. But I need to filter that by day of week as well.
I came up with this DAX measure for averaging latest end times by sellers on Wednesdays but when I do it, it takes the latest end time of each seller across all Wednesdays rather than the average across Wendesdays - so the roll up becomes the average of the latest any one seller completed work on any Wednesday rather than every Wednesday. I need the average of the latest end time PER SELLER PER DAY for just any day where it Wednesday. I hope that makes sense! 🙂
Solved! Go to Solution.
try like:
Avg Latest End Time Wednesdays =
VAR RESULT =
AVERAGEX (
SUMMARIZE (
TableName,
TableName[CHID],
TableName[Completion Date]
),
CALCULATE (
MAX([ACTUAL END TIME]),
[Name of Day]="Wednesday"
)
)
RETURN IF (NOT (ISBLANK(RESULT)),RESULT+TIME(0,0,0
Thank you! I actually just came up with another solution of joining date and sellerID together in another column and using that to take average time and that worked too! I appreciate the help. Just needed some brain storm time!
seems ok. could you also provide some sample data?
Here is some of the data... I want to take the latest end times by seller (CHID) for each day then average that by day of week. The formula above is taking the latest end time of each seller regardless of the day (so latest among all Wednesdays) and averaging that.
I want to
1. Take the latest end time by seller for each date
2. Average the above by day of the week
I tried substituting [seller] with [date] in the original formula but that didn't work. It actually gave the same result.
THANKS AGAIN!!
try like:
Avg Latest End Time Wednesdays =
VAR RESULT =
AVERAGEX (
SUMMARIZE (
TableName,
TableName[CHID],
TableName[Completion Date]
),
CALCULATE (
MAX([ACTUAL END TIME]),
[Name of Day]="Wednesday"
)
)
RETURN IF (NOT (ISBLANK(RESULT)),RESULT+TIME(0,0,0
User | Count |
---|---|
60 | |
46 | |
19 | |
18 | |
15 |
User | Count |
---|---|
116 | |
41 | |
40 | |
28 | |
22 |