Forum Discussion

ccjj's avatar
ccjj
Icon for Helper I rankHelper I
4 years ago
Solved

Scatter Plot - Dax options to make selected data point more distinguishable

Hi Community, I have a scatter plot with a measure to highlight a selected data point using this approach:

https://community.powerbi.com/t5/Desktop/Highlight-Scatter-Graph-Based-on-Slicer-Selection/td-p/1144867

 

It solved like 80% of my data points, but I have a concentrated data in a few areas where it does not work.  Tried using category method and a few others, but there is too much overlap in parts of the data.  With regards to the measure below, any way to move the selected value to the front so I can see the Red, or change the size / shape to make the selected value more distinguishable? Thank you!

Red Selected Color = 
IF ( SELECTEDVALUE ( Slicer[Column] ) = SELECTEDVALUE ( Table[Column] ), "Red" )

 

15 Replies

  • Hi ccjj ,

     

    Ther is an option to change the size of the bubbles in the scattergraph.


    You can use the measure below to dynamically change the bubble size when the selectedvalue is Red

    Measure2 =
    IF (
        SELECTEDVALUE ( Table[Column] ) = "Red",
        [Orignal Measure] * 3,
        //you can use a different number here
        [Original Measure]
    )

    If this solution doesn't work for you, please post  a sample pbix so it will be easier for me or other users to provide you with a working solution or one that is closer to your requirements.

    • ccjj's avatar
      ccjj
      Icon for Helper I rankHelper I

      Thank you!  tried that and it changed my scatter graph to (1) no Fill (2) did not change the size of the datapoint.  Let me see if  I can create some sample data and recreate this in PBI

      • danextian's avatar
        danextian
        Icon for Super User rankSuper User

        Hi ccjj ,

         

        After testing myself the formula I initially recommended for the size, it turned out it wouldn't work as plot sizes are just too big.  So I changed it to somethign like IF(SELECTEDVALUE(tbl[column] = "Red", .0000001, 0 ). The bubble size is more doable but could still be too big. I am attaching a pbix which is originally from sqljason - I edited it to somehow work for your requirements.

        https://drive.google.com/file/d/18WpSdQsNHJ5SX4C6I-5HQK4xWYcM8viW/view?usp=sharing