Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
4 years ago
Solved

Help to add and count different values in parallel

Hello everyone I need your wisdom and advice. I have the following table that indicates the number of accidents and the total rest days that each of these accidents has. In turn, the Sabbath days ar...
  • v-henryk-mstf's avatar
    4 years ago

    Hi Syndicate_Admin ,

     

    Can you convert the content in the screenshot to English so I can easily understand your needs.
    I did the following test to create two measures that show different results depending on the filtered values in the slicer. The reference is as follows:

    M_1 = 
    var sel_ = SELECTEDVALUE('Table'[Date])
    return
    CALCULATE(MAX('Table'[Name]),'Table'[Date]=sel_)
    M_2 = 
    var sel_ = SELECTEDVALUE('Table'[Date])
    return
    CALCULATE(MAX('Table'[Value]),'Table'[Date]=sel_)

     


    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.