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
AsadChanna14
Helper I
Helper I

Need a help with DAX (confidence Interval) -New USER

 
Hello, I am a new user of Dax.  I need to calculate the confidence Interval based on ITEMSID  in the table.

Also, Could you please suggest the best way to plot confidence Intervals based on items.  Thanks!

 

AuctionIdBidderIDItemsIDBID($)
A11235
A212315
A27809
A378010
B499215
B399220
B510030
B610032
B688920
D715530
D815535
D611030
D911032
 
 
 
 
 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

// hidden auxiliary measure
[__95-Conf Delta] =
var __sd = STDEV.S( T[BID($)] )
var __size = COUNTROWS( T )
var __alpha = 0.05
var __delta =
	CONFIDENCE.T(
		__alpha, 
		__sd,
		__size
	)	
return
	__delta

[95-Conf Lower Bound] =
var __mean = AVERAGE( T[BID($)] )
var __delta = [__95-Conf Delta]
return
	__mean - __delta
	
[95-Conf Upper Bound] =
var __mean = AVERAGE( T[BID($)] )
var __delta = [__95-Conf Delta]
return
	__mean + __delta

// The above work for any slicing,
// not only when you do by ITEMSID.
// Now you can plot both measures
// against anything in your table(s).

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

// hidden auxiliary measure
[__95-Conf Delta] =
var __sd = STDEV.S( T[BID($)] )
var __size = COUNTROWS( T )
var __alpha = 0.05
var __delta =
	CONFIDENCE.T(
		__alpha, 
		__sd,
		__size
	)	
return
	__delta

[95-Conf Lower Bound] =
var __mean = AVERAGE( T[BID($)] )
var __delta = [__95-Conf Delta]
return
	__mean - __delta
	
[95-Conf Upper Bound] =
var __mean = AVERAGE( T[BID($)] )
var __delta = [__95-Conf Delta]
return
	__mean + __delta

// The above work for any slicing,
// not only when you do by ITEMSID.
// Now you can plot both measures
// against anything in your table(s).
Anonymous
Not applicable

You have to tell which formula you want to use since there are different formulas for different things. I'd assume you want an interval - that is, the bounds - for the mean but even so, you have to say what assumptions you're making about the data.

Thanks.

Hi, I am a new user of DAX.  Could you please help me with the following problems.

I am trying to get  Probability (Poison Distribution) based on the Item ID for a given range of values. For Example,  itemID 123, there is 10%  probability values fall between 10 to 15. 

 

I used the following formula. But it is picking a range of values from 0 to Given value.  Need something like a Poison Distribution Column. 

 

ItemsIDBID($)Poison Distribution Probability
123510%
1231510%
780915%
7801015%
9921510%
9922010%
100303%
100323%
889201%
155302%
155352%
1103017%
1103217%

 

Currently, I am getting this with the following Measure formula.

Prob = POISSON.DIST(10;[MEAN2];TRUE)

 

Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thank you in anticipation.

 

 
 
 
 
 
 
 

@Anonymous 

 

Yes, you are right. I am looking for interval based on means. Formula I want to use is Confidence.T(). 

Greg_Deckler
Super User
Super User

@AsadChanna14 - What is your calculation for confidence interval?


@ 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...

95%. Thanks

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.

Top Solution Authors