Forum Discussion

snaydeck's avatar
snaydeck
New Member
9 years ago
Solved

HELP URL IMAGE TOP N - No have idea

(HELP URL IMAGE TOP N - No have idea)   I need to make a grid with product photos (using Image Viewer) by Employee.   I need to bring the url of the "image product" column.   I select the desir...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    9 years ago

    Hi snaydeck

    To solve the tie break, I can think of following strategy

     

    With the tie break, lets assume that Lowest Product ID will be Ranked Higher i.e. following desired result

    employeeproduct_idsum_qtyimage_productrank
    A1111100img/qwe.jpg1
    A2222100img/asd.jpg2
    A333360img/zxc.jpg3


    Add a Calculated Column (which only affects the Qty in decimals)

    Dummy Qty =
    Table1[sum_qty]
        - Table1[product_id] / 10000


    Then use above Column to RANK.

    Revised Rank =
    RANKX (
        FILTER (
            Table1,
            Table1[employee] = EARLIER ( Table1[employee] )
                && Table1[Dummy Qty] >= EARLIER ( Table1[Dummy Qty] )
        ),
        Table1[Dummy Qty],
        ,
        ,
        DENSE
    )