Forum Discussion

mbudiman's avatar
mbudiman
Helper III
1 year ago
Solved

Top N based on specific column in MATRIX table

hi, I want to show Top Product (by Sub Main Category) based on Net Revenue for Current Fiscal Quarter, and also shows corresponding Net Revenue for last 3 Fiscal Quarter. I use Matrix table and Top N...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi mbudiman ,

     

    Please try code as below.

    New Net Revenue = 
    IF (
        HASONEVALUE ( 'Table'[FY_FISCAL_QTR] ),
        [Net Revenue],
        CALCULATE (
            [Net Revenue],
           FY_FISCAL_QTR,FY_FISCAL_QTR[QTR_SEQ_NO] = 0
        )
    )

    Result is as below.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.