Forum Discussion
Cbutler
Helper III
3 years agoCount IDs by minimum value for the category - must be dynamic!
Riddle me this! I am trying to count the number of people by their closest building - so distinct count of people is 2,061, distinct count of buildings is 7. I have mapped the distance of every pe...
- 3 years ago
see attached
lbendlin
Super User
3 years ago
see attached
- Cbutler3 years ago
Helper III
Thank you! This is exactly what I needed! 🎉
- Cbutler3 years ago
Helper III
Hello Ibendlin, thanks so much for your help, I am wondering if you can assist again please?
I have added in a new column for travel time in to the table,
(Less than 30 mins, 30mins -1 hour, 1-1.5 hours, 1.5-2 hours, more than 2 hours).
this is for each row, each person distince to building and travel time.
How can I adjust the code so that I can dynamically show the number of persons by their travel time?
They still need to have been sorted by their closest building.... 🤔
Thanks 🤞- lbendlin3 years ago
Super User
You can adjust the DAX to swap out the distance for the time - after you put the time column into a usable (countable) format. Right now it is an inconsistent, unusable mess.