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 6:41 pm

    Match a value from a table with one from another table
    Mihai Stanca
    Mihai StancaJul 04, 2022 11:53 AM
    Hello guys Please help me with a DAX solution for this case I have 2 tables without a relation, one …
    1. Match a value from a table with one from another table

    Mihai Stanca
    Posted Jul 04, 2022 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
    ——————————

    2. RE: Match a value from a table with one from another table

    Vilmar Santos
    Posted Jul 05, 2022 11:53 AM
    Tente

    Medida =
    IF (
    [DATA_U] > [DATA_N],
    “Finished”,
    LOOKUPVALUE ( Tabela2[Code Detail], Tabela2[Code], Tabela1[Code] )
    )​

    ——————————
    Vilmar Santos
    ——————————

     

    3. RE: Match a value from a table with one from another table

    Adam Artur Boltryk
    Posted Jul 05, 2022 02: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
    ——————————

    replied 3 years, 4 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!