Forum Discussion

RaphaelAlves's avatar
RaphaelAlves
Frequent Visitor
5 years ago
Solved

Conditional Formula to show result by day

How to create a conditional formula in DAX to show a daily result based on a specific colunm as the example below? Thanks!

DayLettersConditional Result
1xxywz
1yxywz
1wxywz
1zxywz
2aabcd
2babcd
2cabcd
2dabcd

 

  • RaphaelAlves 

    Add the following DAX formula to your table as a new column:

    Conditional result = 
    
    CALCULATE(
        CONCATENATEX(
            VALUES('Table'[Letters]),
            'Table'[Letters]
        ),
        ALLEXCEPT('Table','Table'[Day])
    )
    
    
    

    ________________________

    If my answer was helpful, please click Accept it as the solution to help other members find it useful

    Click on the Thumbs-Up icon if you like this reply ๐Ÿ™‚


    Website YouTube  LinkedIn

     

1 Reply

  • RaphaelAlves 

    Add the following DAX formula to your table as a new column:

    Conditional result = 
    
    CALCULATE(
        CONCATENATEX(
            VALUES('Table'[Letters]),
            'Table'[Letters]
        ),
        ALLEXCEPT('Table','Table'[Day])
    )
    
    
    

    ________________________

    If my answer was helpful, please click Accept it as the solution to help other members find it useful

    Click on the Thumbs-Up icon if you like this reply ๐Ÿ™‚


    Website YouTube  LinkedIn