Forum Discussion

Rayzo92's avatar
Rayzo92
Icon for Helper I rankHelper I
3 years ago
Solved

Create 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...
  • serpiva64's avatar
    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))
    return
    if (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 !