Forum Discussion

TAlvarez's avatar
TAlvarez
Frequent Visitor
10 years ago

Dynamic Column based on aggregated measure

Hello all,

 

I am trying to create a dynamic dimension based on a slicer, to do this I could use the switch function to populate a column based on a measurement such as max or min from a detached table.  However when I try to do this I have not found a way to make Power BI pass the measurement result to a column in a different table.  With other applications you are able to do this with variables but I can't replicate similar functionality in Power BI.

6 Replies

  • v-sihou-msft's avatar
    v-sihou-msft
    Microsoft Employee

    TAlvarez

     

    We should be able to pass the measurement result to a column in a different table. Please refer to following simple sample.

    If you still have any question, please feel free to ask.

     

    Regards,

     

    • TAlvarez's avatar
      TAlvarez
      Frequent Visitor

      Thank you for your suggestion, I have tried this before and it only gives you the min of the all the column values, no matter the slicers or filters you choose.

      • v-sihou-msft's avatar
        v-sihou-msft
        Microsoft Employee

        TAlvarez

         

        Please try to create two calculated measures as below. ALLSELECTED looks like a function that is able to understand what the user selected.

         

        MinNum = MIN ( Table1[TestNum] )

        TestMeasure = CALCULATE ( [MinNum], ALLSELECTED ( Table1[TestNum] ) )

         

        Regards,

  • Hi TAlvarez

    Can you provide a sample of dynamic dimension which you are trying to achieve?

     

    BR,

    Achin