Match a value from a table with one from another table

  • Match a value from a table with one from another table

    Posted by DSC Communities on July 4, 2022 at 11:53 am
    • Mihai Stanca

      Member

      July 4, 2022 at 11:53 AM

      Hello guys

      Please help me with a DAX solution for this case
      I have 2 tables without a relation, one called “Services table” and another “Detail table” where the code detail it is written.
      I want to add a column in “Services table” where if DATA_U is greater than DATA_N, than “Finished” , else bring the code detail from columnĀ  DETAIL TABLE.
      In excel i put the formula =IF(C2>B2,” Finished”,VLOOKUP(E3,J2:K13,2))
      I know that i can merge queries based on the code column and bring the detail intro one table but i need a DAX formula for this.
      Thank you

      ——————————
      Mihai Stanca
      Acasa
      ——————————

    • Vilmar Santos

      Member

      July 5, 2022 at 11:53 AM

      Tente

      Medida =
      IF (
          [DATA_U] > [DATA_N],
          "Finished",
          LOOKUPVALUE ( Tabela2[Code Detail], Tabela2[Code], Tabela1[Code] )
      )?

      ——————————
      Vilmar Santos
      ——————————
      ——————————————-

    • Adam Artur Boltryk

      Member

      July 5, 2022 at 2:31 PM

      Hi Mihai,
      “I have 2 tables without a relation”
      Why? Your Detail table is PURE DIM table. Make relation on it.

      Do it like a Pro should do šŸ™‚

      @Vilmar Gave you one of solution, so no need more.

      ?

      ——————————
      Adam Artur Boltryk
      Business Analyst
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Match a value from a table with one from another table’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!