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 August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.