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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
cbruhn42
Helper III
Helper III

Variable to Define Amount of Data for Measure

I have a couple of measures that calculate the average of my entire data set along with the standard deviation of the entire data set.

 

I'd like to give my users the option to define how many data points are used to calculate those two statistics.  For example, if they wanted to see what the stats were for the last 50 data points they'd be able to use a slicer to define this.

 

Any ideas how to do this?

2 REPLIES 2
cbruhn42
Helper III
Helper III

I'd like to be able to say, use the last 50 data points to calculate the stats.

ray_aramburo
Super User
Super User

If data points are date based: use a relative date slicer visual and enable the option for Last N Months/Weeks/Days, etc.

It's really useful as the user can submit the N input and change the period. 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors