Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Karthik50
Frequent Visitor

Scatter Plot measure not helping dynamic color..

Hi,

I have this table:

ProductMonthSales
A1100
B1200
C1150
A2200
B2250
C2350
A3300
B3350
C3400


I have a scatter plot (which shows 'Sales' by 'Product'):

Karthik50_2-1712980550243.png

For the dynamic color of the dots, I have measures below:

Karthik50_3-1712980616686.png

Karthik50_4-1712980648697.png

 

The dots are all of the color green. However, when I change value of the variable pointing to "Measure 1", to a hardcoded vlaue, the color of the dots change in the scatter plot.

Karthik50_5-1712980729495.png


Karthik50_6-1712980789514.png


I believe the hardcoded value works as it is not impacted by context. How to ensure the first option (of leveraging Measure 1) works as expected as well?

 

 




1 ACCEPTED SOLUTION

I was exploring ways to present data an change the colors of the dots through Dax. The scatter plot as "sum of sales" on the X-axis and the 'Product' Name in the "Values" section.

I can see using 'Calculate', I am able to get the colors change according to the product choosen.  So "Measure 1" is re-written as follows:


CALCULATE
SUM(Sheet1[Sales]) / DISTINCTCOUNT(Sheet1[Product]), ALLSELECTED(Sheet1) )






View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

what's the reason for choosing a scatter plot?  Where is your second value ?

I was exploring ways to present data an change the colors of the dots through Dax. The scatter plot as "sum of sales" on the X-axis and the 'Product' Name in the "Values" section.

I can see using 'Calculate', I am able to get the colors change according to the product choosen.  So "Measure 1" is re-written as follows:


CALCULATE
SUM(Sheet1[Sales]) / DISTINCTCOUNT(Sheet1[Product]), ALLSELECTED(Sheet1) )






Karthik50
Frequent Visitor

Just to add some more info, I tried adding "Measure 1" as a columm and I got the below:

Karthik50_0-1712999879061.png

I think the context transistion is impacting the comparison....

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors