Forum Discussion

united2win's avatar
united2win
Helper III
6 years ago
Solved

DAX QUERY - SUM VLOOKUP

Hi,

 

I have the below two tables:

Table 1

ConcatenateTime Spent
DE-VAT Return2
DE-VAT Return3
FR-VAT Return7

 

Table 2:

 

ConcatenateCountSum Time Spent
DE-VAT Return2DAX Formula? (5)
FR VAT Return1DAX Formula? (7)

 

What is the DAX formula I need to include in table 2 to add the sum of Time Spent?

5 Replies

    • united2win's avatar
      united2win
      Helper III

      Hi Amit, 

       

      The values of time spent are in the "Time Spent" column, so no need to split by column (space delimeter). The formatting of the table just doesn't show this. 

  • Anonymous's avatar
    Anonymous
    Not applicable

     

    Hi united2win ,

     

     

    Create a Column in Table1.

     

    Column = CALCULATE (Table1 [TimeSpent]), Filter( Table1, Table1[Concatenate] = EARLIER(Table1[Concatenate])))


    Then do a lookup in table 2

     

    Lookup value = Lookup (Table1[Column], Table1[Concatenate] , Table2[Concatenate])

     

     

    Regards,
    Harsh Nathani

    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)