Forum Discussion
Counting Zero-Value Measure Rows in Median Calculations
- 6 years ago
Hi,
Please try this measure:
MED Col A = MEDIANX(SUMMARIZE(Employee_M,Employee_M[Employee ID],"EE",[EE Attend]),[EE])The result shows:
See my attached pbix file.
Best Regards,
Giotto
Hi All,
Thank you for your replies. My numbers are not coming from a static table (as in Greg_Deckler's .pbix), they are being generated by a counting measure. I would love to post a .pbix file to show this, but it does not look like I can. I have no option to add an attachment to my posts/replies.
Edit: Here are some screen shots that I hope will help explain this further (note that these numbers will be different from my original post).
Here are the two tables:
Here is the relationship:
The visual is a table, with two columns, the first being Employee_M[Employee ID], and the second being this measure:
J2K Most people use OneDrive or Box or some other file sharing service to share PBIX files.
- J2K6 years agoHelper I
Greg_Deckler Here you go:
https://www.dropbox.com/sh/e9nhfa9ct8lvgdt/AABA4QgxXplpOARmOqiK4qlpa?dl=0&preview=MedianDemo.pbix
Again, I appreciate that you take the time to look at these things.
- v-gizhi-msft6 years agoCommunity Support
Hi,
Please try this measure:
MED Col A = MEDIANX(SUMMARIZE(Employee_M,Employee_M[Employee ID],"EE",[EE Attend]),[EE])The result shows:
See my attached pbix file.
Best Regards,
Giotto
- J2K6 years agoHelper I
Hi Giotto,
Thank you very much. This works perfectly.
- J2K6 years agoHelper I
@Greg_Deckler Here you go:
https://www.dropbox.com/sh/e9nhfa9ct8lvgdt/AABA4QgxXplpOARmOqiK4qlpa?dl=0&preview=MedianDemo.pbix
Again, I appreciate you taking the time to look at these things.