Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
HI I have a table of Employee ID and Pay Date.
I count the distinct employee IDs for a date range:
Solved! Go to Solution.
@Anonymous Maybe:
Measure Max =
VAR __Dates = ADDCOLUMNS('Dates'[Date],"__HeadCount",[HeadCount])
RETURN
MAXX(__Dates,[__HeadCount])
Measure Min =
VAR __Dates = ADDCOLUMNS('Dates'[Date],"__HeadCount",[HeadCount])
RETURN
MINX(__Dates,[__HeadCount])
Measure Average =
VAR __Dates = ADDCOLUMNS('Dates'[Date],"__HeadCount",[HeadCount])
RETURN
AVERAGEX(__Dates,[__HeadCount])
@Anonymous Maybe:
Measure Max =
VAR __Dates = ADDCOLUMNS('Dates'[Date],"__HeadCount",[HeadCount])
RETURN
MAXX(__Dates,[__HeadCount])
Measure Min =
VAR __Dates = ADDCOLUMNS('Dates'[Date],"__HeadCount",[HeadCount])
RETURN
MINX(__Dates,[__HeadCount])
Measure Average =
VAR __Dates = ADDCOLUMNS('Dates'[Date],"__HeadCount",[HeadCount])
RETURN
AVERAGEX(__Dates,[__HeadCount])
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 46 | |
| 44 |