Forum Discussion

JuliaDRX's avatar
JuliaDRX
Regular Visitor
4 years ago
Solved

same table lookupvalue multiple values where single value was expected

Hi together,

 

i really looking for a good tip for my following problem , it really drives me crazy !! 

 

It is all in the same table - no realtionship needed. 

Both columns have multiple values - unique values .

 

Line 1 is clear, if WWL_FACT_FACT_ID_HOST is empty - please use FACT_ID_Host

IF (mdm_v2_factorylist[WWL_FACT_FACT_ID_HOST]="",mdm_v2_factorylist[FACT_ID_HOST], HERE LOOKuPVALUE for LINE 2+3 ??)
 
Line 2 and 3 is my problem : if WWL_FACT_FACT_ID_HOST is not EMPTY and/or  1N=1N same - please look in WWL_FACT_FACT_ID_HOST where FACT_ID_HOST is different and use that one >> 1M
 
Thanks a lot for your help !! 

 

LineFACT_ID_HOSTWWL_FACT_FACT_ID_HOSTthat should be the solution 
11M"empty"1M 
21M1N1M 
31N1N1Mif this is same please look for not same and use this

3 Replies

  • SpartaBI's avatar
    SpartaBI
    Icon for Community Champion rankCommunity Champion

    JuliaDRX 

     

    Result = 
    IF(
        Tabelle1[WWL Werk] <> BLANK(),
        Tabelle1[Werk Nr. HOST],
        VAR _search = Tabelle1[Werk Nr. HOST]
        RETURN
        CONCATENATEX(
            FILTER( 
                Tabelle1,
                Tabelle1[WWL Werk] = _search
            ),
        Tabelle1[Werk Nr. HOST] 
        )
    )

     





          

    Showcase Report – Contoso By SpartaBI

  • JuliaDRX's avatar
    JuliaDRX
    Regular Visitor

    LookupValue does not work - because of multiple values where single expected.