Forum Discussion

KY's avatar
KY
Regular Visitor
10 years ago
Solved

Dynamically calculate differences based on slicer slection

Hi,    I am trying to present the data in a line and clustered column chart,date in the axis, company as column series, and Assets as the column value. In slicer, I have Company (A, B, C....F).   ...
  • Eric_Zhang's avatar
    10 years ago

    KY

    Please check if you can follow below steps. To make a better presentation, I'm using some data simple.
    Suppose the dataset is as

     

    1. Create an index column
      rank = RANKX(Table3,Table3[Company],,,Dense)
    2. Create a measure
      Measure = ABS((SUMX(FILTER(Table3,Table3[rank] = MIN(Table3[rank])),Table3[Revenue])-SUMX(FILTER(Table3,Table3[rank] = MAX(Table3[rank])),Table3[Revenue])))
    3. Drag a line and clustered column chart

    Check more details in the uploaded pbix.