Forum Discussion

ChavdarG's avatar
ChavdarG
Frequent Visitor
5 years ago
Solved

Matrix divide one row by another

Hello everyone,   I have been at this for some time now and finally I decided to seek help from the Community. I have seen similar questions posted but for some reason am unable to adapt the answe...
  • v-jingzhang's avatar
    5 years ago

    Hi ChavdarG 

    Do you mean the denominator will always be Volumes value and the numerator will change according to the attribute? If so, try below measure.

    Measure =
    IF (
        SELECTEDVALUE ( Attributes[Attribute] ) = "VOLUMES",
        SUM ( 'Table'[Final_Value] ),
        DIVIDE (
            SUM ( 'Table'[Final_Value] ),
            CALCULATE (
                SUM ( 'Table'[Final_Value] ),
                ALL ( 'Table' ),
                'Table'[Attribute] = "VOLUMES"
            )
        )
    )

     

    Kindly let me know if this helps.

    Community Support Team _ Jing Zhang
    If this post helps, please consider Accept it as the solution to help other members find it.