The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi team,
I am getting the Present (worked days) days of an Employee from the Production sheet for a given month from Distinct count, even for multiple months selection on slicer i am getting the value, but as soon as a new Employee is selected it is showing me a different value.
Example :
Ron | 12/2/2019 |
Ron | 12/3/2019 |
Ron | 12/4/2019 |
Ajay | 12/2/2019 |
Ajay | 12/3/2019 |
Ajay | 12/4/2019 |
Ajay | 12/5/2019 |
Ajay | 12/6/2019 |
I am getting 3 days for Ron and 5 days for Ajay, but as soon as i select Ron and Ajay both it should give me 3+5 = 8 but showing some other value.
Thanks in Advance,
Abhishek
Solved! Go to Solution.
If dates are distinct for each employee then you can use count(Table[Date])
If not use combine key
Key = [Employee] & [Date] and take a distinct count
If dates are distinct for each employee then you can use count(Table[Date])
If not use combine key
Key = [Employee] & [Date] and take a distinct count
Thank you! the second option worked for me by combining columns.
User | Count |
---|---|
64 | |
55 | |
53 | |
50 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |