cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Normal Distribution Curve

Hi,

 

I created normal distribution curve from Joseph Romero videos but the values don't change if I try to change the date.

Below are the formulas I used.

 

Please let me know how I can filter with date values

 

f(x) =
 EXP((VALUES('Normal Distribution'[X])-[Mean new])^2/(2*[STDEV new]^2)*-1)/(SQRT(2*PI())*[STDEV new])
Normal Distribution =
VAR MinValue = Floor([-2 sigma new],1)
VAR MaxValue = CEILING([+2 sigma new],1)
RETURN
SELECTCOLUMNS(CALENDAR(MinValue,MaxValue),"X",INT([Date]))
Z = ('Normal Distribution'[X]-[Mean new]/[STDEV new])
4 REPLIES 4
v-xicai
Community Support
Community Support

Hi  @Anonymous  ,

 

Do the suggestions from engineers make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

Greg_Deckler
Super User
Super User

@Anonymous Can you post sample data or PBIX link? Not quite sure about your use of CALENDAR there. I also don't like VALUES.

https://community.powerbi.com/t5/Community-Blog/Soapbox-Series-Adding-No-VALUE-S/ba-p/1059818


@ 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!:
Mastering Power BI 2nd Edition

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

@Greg_Deckler  Here's the sample data. I used this table to calculate mean and standard deviation.

I want to use run time dates to filter the normal distribution curve.

sample frac.PNG

Hi @Anonymous ,

 

You may use measure instead of calculated column to create the formula. You couldn't have a calculated column interact with a slicer since columns are only calculated at data load/refresh. 

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors