Forum Discussion

sameergupta60's avatar
sameergupta60
Helper IV
3 years ago
Solved

Dax help

Dear All, 

 

we need help on the below dax.

 

ActualFinish =
CALCULATE (
    FIRSTNONBLANK( C1[ActualFinish], 1 ),
    FILTER(ALL(C1),C1[UniqueTaskID]=OPSCollection[ASTA Unique ID])
    )
 
using the above dax got the data for some rows but in some rows date not showing.
 
attached screenshot for your reference.
 
 Opscollection Table screenshot
C1 Table screenshot

 

Actual finish date from c1 need on opscollection table actual finish column

 

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi sameergupta60 ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a calculated column.

    ActualFinish = 
    CALCULATE (
        FIRSTNONBLANK( C1[ActualFinish], 1 ),
        FILTER(ALL(C1),C1[UniqueTaskID]=EARLIER('Opscollection'[ASTA Unique ID]))
        )

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi sameergupta60 ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a calculated column.

    ActualFinish = 
    CALCULATE (
        FIRSTNONBLANK( C1[ActualFinish], 1 ),
        FILTER(ALL(C1),C1[UniqueTaskID]=EARLIER('Opscollection'[ASTA Unique ID]))
        )

    (3) Then the result is as follows.

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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