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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
james_pease
Helper III
Helper III

Scatter plot displaying odd points outside of the calculated formula

Hello all, I have been conducting a lot of log regression analysis in excel. Sales are the X value and cost % is the y value. I came up with the following line equation:
y=1.0554-0.06737*ln(x)

I converted this in DAX to graph to be able to calculate a line of expected cost % at a given sales (so our true cost to gage if we are under or over the models cost %).

 

Here is the calculated column:

Taco Bell Labor Line =
IF(All_Actual_Sales[Actual Sales Null Values]=0,BLANK(),
IF(All_Actual_Sales[Actual Sales Null Values]>10000, (1.0554 - (0.06737* (All_Actual_Sales[LN Actual Sales])))))
 
Also I created a LN Actual sales column to keep the above forumla more simple:
LN Actual Sales =
IF(All_Actual_Sales[Actual Sales Null Values] > 10000,
LN(All_Actual_Sales[Actual Sales Null Values]))
 
My question is why are there points that appear off the line?
Keep in mind I could not put the calculated column into the scatter plot without selecting one of the summarization options, so I selected average as it should visually show the trend. If there is a way I can use the formula without having to pick a summarization option that would be ideal.
See the image below:
 
james_pease_0-1661368710280.png

 


Im extremely confused becuase the table shows the calculated column is working perfectly:

james_pease_1-1661366961876.png

 

Does anyone have insight as to when I put the same calculated measure into a scatter plot, I end up with odd points?

Thank you in advance!



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @james_pease ,

 

You can only put aggregate value or measure in Scatter Chart.

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
james_pease
Helper III
Helper III

I think I figured it out. Since the scatter plot is the average of the calculated column, it averages out every row for each store (the dots are the stores) then it plots it. Now my follow up question, is there a way I can simply plot that measured column against actual sales? So not having to select a summarization option?

 

 

Anonymous
Not applicable

Hi @james_pease ,

 

You can only put aggregate value or measure in Scatter Chart.

 

Best Regards,

Jay

I see gotcha, thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.