Forum Discussion
Madhans
3 years agoFrequent Visitor
DAX Help - Mandays Calculation
I have one fact table containing Employee Clm, Joining-date Clm, Relieving-date Clm And one calendar table. Need to have the number of days in the particular period as below attached...
- 3 years ago
Hi,
Please check the below picture and the attached pbix file.
expected outcome measure: = COUNTROWS ( FILTER ( 'Calendar', 'Calendar'[Date] >= MAX ( Employee[Joined Date] ) && IF ( NOT ISBLANK ( MAX ( Employee[Relieving Date] ) ), 'Calendar'[Date] <= MAX ( Employee[Relieving Date] ), MAX ( 'Calendar'[Date] ) ) ) )
Jihwan_Kim
3 years agoSuper User
Hi,
Please check the below picture and the attached pbix file.
expected outcome measure: =
COUNTROWS (
FILTER (
'Calendar',
'Calendar'[Date] >= MAX ( Employee[Joined Date] )
&& IF (
NOT ISBLANK ( MAX ( Employee[Relieving Date] ) ),
'Calendar'[Date] <= MAX ( Employee[Relieving Date] ),
MAX ( 'Calendar'[Date] )
)
)
)
Madhans
3 years agoFrequent Visitor
Jihwan_Kim Thankyou so much . It worked!