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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
DDebbie
New Member

Facing issue in calculating confidence interval in power bi

Hello members,

 

I am facing an issue in calculating confidence level (95%) . I have calculated the standard deviation and I am finding the rolling average of 12 months. The confidence level when diced by products throws the below error message. My end goal is to find top range and botom range for each template over 12 months. Any leads on this is highly appreciated ! 

DDebbie_0-1720121179855.png

 

 

Top Range = [mean]+CONFIDENCE.NORM(0.05,[Standard Deviation],12)
Standard Deviation =
CALCULATE(
        STDEVX.P(
            DATESINPERIOD('Date'[FirstDayOfMonth], LASTDATE('Date'[FirstDayOfMonth]), -12, MONTH),
            'Standard Conversions'[Ford Efficiency]
        ),
        ALL('Date'[Year Month])
    )
4 REPLIES 4
Anonymous
Not applicable

Hi,@DDebbie
Has your problem been solved?
If you have found suitable solutions, please share them as it will help more users with similar problems.
Or you can mark the valid suggestions provided by other users as solutions

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

DDebbie
New Member

Hi @freginier , there are no blank values and the data type for standard deviation is currency and that of Date [FirstDayOfMonth] is Date Time, which can't be changed as I am drawing the data from a power bi semantic model.

Anonymous
Not applicable

Hi,@DDebbieI am glad to help you. 
Hello,@freginier ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.

Could you please check if [Standard Deviation] alone returns the correct structure, according to the error message it seems that [Standard Deviation] in the standard_dev function location is not returning the correct result.
Have you tried changing the "Date/Time" type to "Date" type?
You need to output the measure: Standard Deviation results separately to see if they are correct.
I would recommend running each step individually to check that it is working correctly.
If you can provide the pbix file without sensitive data, it will help to solve the problem, you'd better share the test data without sensitive data (I suggest to share it in your reply by copy and paste, not by screenshot) to avoid the uploaded link can't be accessed.

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

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

freginier
Solution Sage
Solution Sage

Hi @DDebbie before looking at DAX formula, do you check your data to be sure you have the correct type and no blank or something else? 

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.