Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Add date and time columns together without creating a calculated column or using power query

In my hypothetical, I need to find the number of drafts for each of the below articles.

You will notice that some books had multiple drafts e-mailed on the same day, so it's necessary to use both the draft e-mailed time and draft e-mailed date to figure out which draft is the most recent.

I would like to do this without creating a Draft E-mailed DateTime column in power query or a DAX calculated column. Is there a way to do so?

 

Starter Table: 

EditorArticle IDArticle Draft IDDraft E-Mailed DateDraft E-Mailed Time
Sam47511346dhsf5/21/20221:13:00 AM
Jenny55347r3466666/13/20222:51:00 PM
Lee4839aag34337/1/20224:00:00 AM
Robin40270ffasdd2/1/202210:32:00 AM
Lee4420ccee5552/3/20225:00:00 PM
Sam4751f4tyyyy5/21/20225:16:00 AM
Jenny5534fase3thh6/13/202210:32:00 PM
Lee4839fasd346667/1/20226:54:00 PM
Sam6678jj4668trey8/16/20227:00:00 AM
Lee4420eueytuuu2/4/20226:00:00 AM
Sam4751kguiuu6485/21/20228:21:00 AM
Lee4420xxcgh65552/4/20227:00:00 AM

 

Goal table:

EditorArticle IDDraft CountDraft IDMost Recently Emailed Draft's DateMost Recently Emailed Draft's Time
Sam47513kguiuu6485/21/20228:21:00 AM
Robin402710ffasdd2/1/202210:32:00 AM
Jenny55342fase3thh6/13/202210:32:00 PM
Lee48392fasd346667/1/20226:54:00 PM
Sam66781jj4668trey8/16/20227:00:00 AM
Lee44203xxcgh65552/4/20227:00:00 AM

2 Replies

  • You can use MAX(Most Recently Emailed Draft's Date, Most Recently Emailed Draft's Time), or MAXX() if you've got multiple rows you need to look at.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hmm, when I try to put two columns in one MAX() function I get a warning red line.