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
jhimelic
Frequent Visitor

norm.inv

i have 8760 data for multiple units for multiple variables extending across multiple years. 

 

I am trying to calculate the p50, p5 and the p95 for a particular unit (e.g. unit_1), a particular variable (e.g. renewable production), and particular time period. In this case i am interested in hourly averages by month for a particular year (i.e. a 12x24 grid). 

 

i filter the data appropriately to isolate the unit and variable of interest. i then assign a data hierarchy and i can get the YMH layout as desired. i then create two measures, one for the average (Avg_RE) and one for the standard deviation (STDEV_RE), and activate them in the table and I get the following table. so far, so good. 

 

image.png

however, when i try to calculate the p5 and add this as a column alongside the other data streams, i am running into problems.

 

when i enter in: norm.inv(.05,avg_re, stdev_re)

 

rather than getting the P5 value for that particular hour and month in that year, i get a single result back. how can i write this function to get the P5 to show as a column across the hours, months, and years just like it shows for the other measures? I would take the same approach for the P95 calculation (adjusting the norm.inv inputs as appropriate). 

 

thank you. 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @jhimelic ,

 

You may try to create "norm.inv(.05,avg_re, stdev_re) "  using a measure instead of calculated column.

 

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.

View solution in original post

1 REPLY 1
v-xicai
Community Support
Community Support

Hi @jhimelic ,

 

You may try to create "norm.inv(.05,avg_re, stdev_re) "  using a measure instead of calculated column.

 

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