Forum Discussion
Rayzo92
Helper I
3 years agoCreate calculated column based on another column result
Hello dear members , I have a table called planning that contain the absence details of my employees . I wanted to create a calculated column that contain the absence details of my employee bu...
- 3 years ago
Hi,
with Dax you can add a calculate column
Column = var currid = 'Table'[ID]var currdate = 'Table'[Date]var result = countrows(FILTER('Table','Table'[ID]=currid && 'Table'[Date]=currdate))returnif (result=2,"Multi", 'Table'[Reason])If this post is useful to help you to solve your issue consider giving the post a thumbs up and accepting it as a solution !
Bifinity_75
Solution Sage
3 years agoHi Rayzo92 , try this calculate column:
Created Column = IF(
CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[id],'Table'[day]))>1,
"Multiple",'Table'[reason of absence])
Best regards