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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Add Average Line in Gauss Curve

Good Afternoon All, 

 

I am needing some help as I have exhausted everyting I can think of in doing this. I have a Gauss Curve, or "bell curve" I created for information related to how many days difference vendors are from getting their purchase orders to us on time (called DayDiff). With this data I was able to review a video that showed me how to create a bell curve graph. What I would like to do now is create measure/calculated column to be able to display the mean and std dev +- 1 and +- 3 within the curve and the data label associated. I undertand this may sound like a lot, in fact I have tried all kinds of ways to manipulate it but I can't seem to get it. Below is all the information. 

 
 

BIgausssnip.PNG

 The Measures created for the red (mean) and the blue (std dev):

 

(µ) DayDiff = AVERAGE(OnTimeDelivery[DayDiff])
(σ) DayDiff = STDEV.S(OnTimeDelivery[DayDiff])
 
Measures for +-1 and +-3:
 
x+1σ = [(µ) DayDiff] + 1*[(σ) DayDiff]
x-1σ = [(µ) DayDiff] - 1*[(σ) DayDiff]
x+3σ = [(µ) DayDiff] + 3*[(σ) DayDiff]
x-3σ = [(µ) DayDiff] - 3*[(σ) DayDiff]
 
*Hopefully this information helps. Any help would be appreciated, thank you!
 
 
3 REPLIES 3
Greg_Deckler
Super User
Super User

If that is a line chart visualization, there is a built in Average line in the analytics pane in the Visuals area (magnifying glass icon). Also, for you measures, you may be able to change them to the following:

 

(µ) DayDiff = AVERAGE(ALL(OnTimeDelivery[DayDiff]))
(σ) DayDiff = STDEV.S(ALL(OnTimeDelivery[DayDiff]))
 
Then you should be able to add them to the Values area of your visual.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

So the visual is a line and stacked column chart and when I click the Magnify glass it states that analysis can't be done. I also tried the ALL function in the rewritten measures but it kept giving me an error and would not function. If it helps here is kind of more what I am looking for: 

 

InkedBIgausssnip_LI.jpg

 

Sorry, probably:

 

(µ) DayDiff = AVERAGEX(ALL(OnTimeDelivery),[DayDiff])
(σ) DayDiff = STDEVX.S(ALL(OnTimeDelivery),[DayDiff])

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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