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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.