Forum Discussion
Calculated column based on filters.
Anonymouswere you able to calculate the denominator accordinglt? If yes, can u share the file with me?
Anonymous if you apply the same changes I made to firstdate to last date it should work properly. the formula is the same just the fields are different.
- Anonymous8 years agoNot applicable
Hey I have the following situation.
I have given a date range from 2010 to 2020.
I want to create the following measure: Count the number of employees if date hired of employees = last date in date table (I created this date table), else 0.
I created the following measure till now: Measure = CALCULATE(COUNT(Employees[ID]), Filter(Employees, Employees[HireDate]= 'Date Table'[Last Date])
So bascally I want to calculate the count when hire date matches last date, else I want it to return 0. However, it returns weird values even for the year 2019 in the filter. Is there a way in which this can be calculated?
Thank You!
- Anonymous8 years agoNot applicable
okay i'll try and let u know in a while! Thanks Anonymous@
- Anonymous8 years agoNot applicable
Anonymous,
What is the last date in date table? Is it a measure? Could you please share sample data of your table and post expected result based on the sample data?
Regards,
Lydia - Anonymous8 years agoNot applicable
Hey, I had posted my sample under a different discussion called "Calculated Column based on Filters" yesterday. There is a detailed description there. Anonymous
- Anonymous8 years agoNot applicable
Anonymous,
Do you want to get same expected result in the two different discussion? If so, I will merge the two threads.
Regards,
Lydia - Anonymous8 years agoNot applicable
Anonymous Yes, They are related. So I guess you can merge it. Thank You!
- Anonymous8 years agoNot applicable
Anonymous was my solution the accepted solution???
- Anonymous8 years agoNot applicable
Anonymous Hey, Sorry. I just tried it and it dint work. However, I have usd tweaking to make it work now.
- v-jiascu-msft8 years agoMicrosoft Employee
Hi Anonymous,
Could you please share the solution and mark it as a solution?
Best Regards,
Dale