Forum Discussion

Sep_Mag's avatar
Sep_Mag
New Member
8 years ago

index value based on max date across different tables

HI,

 

I am very new to powerbi. Wonder if i could get some help wiht this. I have a merged and de-duped table of unique records with unique record Id's field popluated from few different source tables i.e conference attended, exibition attended, website registration etc,

A record can be present more than once in any of these tables and across these tables.

The source tables also include date and demographic fields.

I want to index the latest job title into my merged and de-duped table of record id's, looking at the max /latest date across these tables.

Is there a way of finding the max date from the date fields across these different source tables for each record id and then index the corresponding job title in my unique record id table.

Would be great to get some help on this.

 

 

3 Replies

    • Sep_Mag's avatar
      Sep_Mag
      New Member

      HI Ashish,

      Here are my source tables examples and what I would like my merged table of Record ID's to look like.

      Conference, exhibition and website sit as separate tables on powerbi.

      My logic is the find the record id and look across the date filed in my source table, find the latest date and index the job title and latest date in corresponding fileds (and source if that is possible)

      Thank you 

       

       

      Merged list  
      Record IDJob titleDate
      11Test101/01/2018
      12Test 2202/02/2018
      13Test 33301/01/2018
      14Test 4403/02/2018
      15Test 501/01/2018
      16Test 66604/02/2018
      17Test 7705/02/2018
      18Test 8801/02/2018
      19Test 1901/01/2018
      20Test 2001/01/2018

       

      Conferece   Exhibition   Website   
      Record IDJob titleDate Record IDJob titleDate Record IDJob titleDate 
      12Test 201/01/2018 11Test 101/01/2018 16Test 66604/02/2018 
      12Test 2202/02/2018 12Test 201/01/2018 17Test 7701/01/2018 
      13Test 23 30/01/2018 13Test 33301/01/2018 17Test 7702/02/2018 
      14Test401/01/2018 14Test 4403/02/2018 19Test 1901/01/2018 
      16Test 6601/02/2018 15Test 501/01/2018 20Test 2001/01/2018 
      16Test 601/01/2018 17Test 7705/02/2018 18Test 8801/02/2018