Forum Discussion
vanessafvg
9 years agoCommunity Champion
Cummulative values issue when using inactive relationships
I am trying to calculate the net figure of leavers vs joiners over a time. My primary (active) date relationship is built on the start date my secondary (inactive) date relationship is built on ...
mattbrice
9 years agoSolution Sage
Does your 'Date' calendar table include all dates as far back as the earliest date in the 'Employees All Time'[Leaving Date] column?
- vanessafvg9 years agoCommunity Champion
mattbrice hi yes it does have all the dates, Anonymous can't share the data but i know what the issue is, its counting the blanks. However I dont want it to count the blanks, how do i ignore them? I tried not(isblank) but that seems to have no affect, however if you recreate the measure where isblank is true then you can tae that new measure and minus the blanks from the original measure, but it seems like a very unelegant way to do it.
- Anonymous9 years agoNot applicable
Hi vanessafvg,
Where do you put not(isblank) in your formula? Do you use the following formula? You can share table with dummy data.leavers = CALCULATE(DISTINCTCOUNT('Employees All Time'[Employee No.]),NOT(ISBLANK('Employees All Time'[leaving date])), USERELATIONSHIP('Employees All Time'[leaving date],'Date'[Date]), filter( all('Date'[Date]), 'Date'[Date]<= MAX('Date'[Date])))
Thanks,
Lydia Zhang