Forum Discussion
New Joiner Count
- Anonymous2 years ago
Hi Saad_Hanif456 ,
Try this.
Measure = VAR _a = MIN('Calendar'[Date]) var _b = EOMONTH(_a,0) RETURN CALCULATE( DISTINCTCOUNT(Payroll[CNIC ]), FILTER(ALL(Payroll),[Firsthiringdate] >= _a && 'Payroll'[Firsthiringdate] <= _b) ) - 2 years ago
Dear Anonymous ,
Perfect brother.
Thank you so much.
Regards,
Saad Hanif
Dear Anonymous ,
It is not working in my sheet , i tired the same.
It will not be benefical for me because I have a slicer of Calendar [Month] and Calendar [Year], if I use the new calendar table Table[date] for the sake of DAX Works that Calendar table slicer will not work accordingly.
Therefore, I need the relation active with the same Payroll [Payroll Month] and Calender [Date] and uses DAX so that the silcer could also work accordingly.
Hi Saad_Hanif456 ,
Try this.
Measure =
VAR _a = MIN('Calendar'[Date])
var _b = EOMONTH(_a,0)
RETURN
CALCULATE(
DISTINCTCOUNT(Payroll[CNIC ]),
FILTER(ALL(Payroll),[Firsthiringdate] >= _a && 'Payroll'[Firsthiringdate] <= _b)
)
- Saad_Hanif4562 years ago
Helper I
Dear Anonymous ,
Perfect brother.
Thank you so much.
Regards,
Saad Hanif
- Saad_Hanif4562 years ago
Helper I
Dear Anonymous,
What if i want to look in the following way in the table visual:Column Names:
Month - Names - CountThen what should be added in the same DAX.
Regards
Saad Hanif
- Saad_Hanif4562 years ago
Helper I
Dear Anonymous ,
Please suggest this as well?
What if i want to look in the following way in the table visual:
Column Names:
Month - Names - CountThen what should be added in the same DAX.
Regards
Saad Hanif
- Anonymous2 years agoNot applicable
Measure = VAR _a = MIN('Calendar'[Date]) var _b = EOMONTH(_a,0) VAR _c = CALCULATE( DISTINCTCOUNT(Payroll[CNIC ]), FILTER( ALL(Payroll), Payroll[firsthiringdate] >= _a && Payroll[firsthiringdate] <= _b)) VAR _d = CALCULATE(CONCATENATEX(SUMMARIZE('Payroll',[Name ]),[Name ],","), FILTER( ALL('Payroll'), Payroll[firsthiringdate] >= _a && Payroll[firsthiringdate] <= _b)) RETURN IF(ISBLANK(_c),BLANK(), "Month:" & MONTH(_a) & "-" & _d & "-" & _c)