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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
RichXM655
Helper I
Helper I

Can;t get confidence.t to work based on column variables.

I;m trying to calculate a confidence interval for my data.

 

The Data is in a generated table that's already calculated the mean, sample size, and standard deviation for all the samples (there are several thousand rows in this table).

The actual data is all on a 0-1 scale, displayed as a percentage.

 

MeanSDN
83.33%28.87%3

 

So as I understand, the formula, to add a new column for CIs, I just need to run:

CI = CONFIDENCE.T(0.05,'table'[SD],'table'[N])

 

This doesn;t work however, and throws an error:

An argument of function 'CONFIDENCE.T' has the wrong data type or the result is too large or too small. If the argument is expected to be a date, that date must be between March 1, 1900 and December 31, 9999.

 

However, I've checked, and re-checked the data types and both SD and N are numbers.

 

If I replace the column references with static numbers, so 

 

CI = CONFIDENCE.T(0.05,0.2887,3)

 

That calculates.

 

Can anyone point me to what am I missing?

1 ACCEPTED SOLUTION
RichXM655
Helper I
Helper I

In the end, I gave up on using confidence.t and instead coded the equation in from scratch, using a lookup table to get the value of T based onthe value for the degrees of freedom.

View solution in original post

3 REPLIES 3
RichXM655
Helper I
Helper I

In the end, I gave up on using confidence.t and instead coded the equation in from scratch, using a lookup table to get the value of T based onthe value for the degrees of freedom.

mahoneypat
Microsoft Employee
Microsoft Employee

You are referncing two columns in your formula (even though there is a single row), when a scalar values is expected.  Try this instead

 

CI = CONFIDENCE.T(0.05,MIN('table'[SD]), MIN('table'[N]))

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Sadly, that doesn;t make any difference.

Surley when running a calculation on a column, it shou;d only reference the celss in that row when they're put into a formula- this is how the other column caclulations Ihave work.

 

I also tried using a CALCULATE fuinction to filtering the column down so it was a single row, then running the calculation, but that didn't work either - so I'm totally stumped at the moment.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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