Forum Discussion

KBO's avatar
KBO
Memorable Member
7 years ago

Last Status based on Date/ Time

Hello together,
I have a question is there a DAX formula with which you can calculate the last status?
So I have a computer with several packages installed, sometimes not successfully. Now I would like to know if all packages on the computer have passed successfully, based on the last date/time. Is that possible?

It should serve the overview which computers are not yet completely finished. (Like monitoring view)

 

Best Kathrin

6 Replies

  • KBO's avatar
    KBO
    Memorable Member

    I tried out this solution but I get an error message:

     

    MyValues Column = SUMMARIZE(VIEW_REPO_ARCHIVEDISTJOBS;VIEW_REPO_ARCHIVEDISTJOBS[COMPUTERNAME];
    "LastDate"; Max(VIEW_REPO_ARCHIVEDISTJOBS[LASTMODTIME]);
    "ItemCount"; CALCULATE((Max(VIEW_REPO_ARCHIVEDISTJOBS[RESULT]));
    Filter(VIEW_REPO_ARCHIVEDISTJOBS; VIEW_REPO_ARCHIVEDISTJOBS[LASTMODTIME] = Max(VIEW_REPO_ARCHIVEDISTJOBS[LASTMODTIME]))))

     

    The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

     

    Where is my mistake in thinking?

     

    Best Kathrin

    • v-yuta-msft's avatar
      v-yuta-msft
      Community Support

      Hi KBO,

       

      You should create a calculate column, not a calculate table. If still can't meey your requirement, could you share some sample data and clarify more details about your logic and expected result?

       

      Regards,

      Jimmy Tao

      • KBO's avatar
        KBO
        Memorable Member

        If you like v-yuta-msft I can send you a dummy-data file? I don't see how I can attached a file to my post. 

         

        Best Kathrin

  • Hi KBO,

     

    You can use group by function. Hope this can help you.

     

  • Hi,

     

    Share the link from where i can download your PBI file and also show the expected result so that i can compare my result with your expected answer.