Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Box plots for 2 different measures

I have a table which looks something like this:

 

EntityMonthRelative_valueNew_Value
BallJanuary8890
BallFebruary6689
BallMarch5588
BallApril4381
BallMay4590
BallJune6567
BallJuly4545
BallAugust3434
BallSeptember2987
BallOctober7812
BallNovember7832
BallDecember5438

 

 

I want to create a visual using the above data showing the box plots for Relative_value and New_value on the same scale. How do I do it, I have tried using the Box and Whiskers chart but it does not allow to have 2 values that can be used nor does Box and Whiskers by MAQ software. Please let me know if there is something wrong that I am trying to achieve or if this is possible.

 

The final visual should have 2 box plots taking values from Relative_value and New_value columns. How can they have a common y-axis? 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

    Please try below steps:

    1. create a new table with below dax formula

    CombinedTable =
    UNION (
        SELECTCOLUMNS (
            'Table',
            "Entity", 'Table'[Entity],
            "Month", 'Table'[Month],
            "MeasureType", "Relative_value",
            "Value", 'Table'[Relative_value]
        ),
        SELECTCOLUMNS (
            'Table',
            "Entity", 'Table'[Entity],
            "Month", 'Table'[Month],
            "MeasureType", "New_Value",
            "Value", 'Table'[New_Value]
        )
    )
    

     

    2. visualize the data

    Please refer the attached .pbix file.

     

    Best regards,
    Community Support Team_Binbin Yu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    Please try below steps:

    1. create a new table with below dax formula

    CombinedTable =
    UNION (
        SELECTCOLUMNS (
            'Table',
            "Entity", 'Table'[Entity],
            "Month", 'Table'[Month],
            "MeasureType", "Relative_value",
            "Value", 'Table'[Relative_value]
        ),
        SELECTCOLUMNS (
            'Table',
            "Entity", 'Table'[Entity],
            "Month", 'Table'[Month],
            "MeasureType", "New_Value",
            "Value", 'Table'[New_Value]
        )
    )
    

     

    2. visualize the data

    Please refer the attached .pbix file.

     

    Best regards,
    Community Support Team_Binbin Yu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.