Forum Discussion

ajdm2007's avatar
ajdm2007
Helper III
1 year ago
Solved

Adding specialist picture

Hello everyone, I hope you had a happy holiday season with all your loved ones and that this new year 2025 you reach all your goals. I'm a Call Center Supervisor and since last year I have been wor...
  • ajdm2007's avatar
    ajdm2007
    1 year ago

    Hello lbendlin 

     

    Thank you for your advise. I'll keep it on mind.

     

    I have already solved the problem of the formulas, I leave a sample for future reference:

     

    most_effective_specialist = 
    MINX(TOPN(1,
    ADDCOLUMNS(
    SUMMARIZE(specialist,[Name]),"Rank",[effective_rank]),[Rank],ASC),specialist[Name])

     

    most_effective_specialist_photo = 
    VAR EffectiveSpecialist =
        MINX(
            TOPN(
                1,
                ADDCOLUMNS(
                    SUMMARIZE(specialist, specialist[Name]),
                    "Rank", [effective_rank]
                ),
                [Rank], ASC
            ),
            specialist[Name]
        )
    RETURN
        CALCULATE(
            MAX(specialist[PhotoURL]),
            specialist[Name] = EffectiveSpecialist
        )