cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrtn Frequent Visitor
Frequent Visitor

Setting a minimum number of rows when grouping, combined with time slicer

Hi!

 

I have grouped data, and want to plot the average for each group. For a given group, I do not want to plot the average if the number of rows is less than a given value, say 100. 

 

In addition, I want to use a time slicer, such that the user is able to update the plot for a given time range.  Using summarizecolumns() hence does not work, as it outputs a static table. 

 

My data has three columns, 1) Timestamp 2) Value 3) Group. The number of groups is high, such that manual operations should be avoided. 

 

Any ideas?

3 REPLIES 3
Community Support Team
Community Support Team

Re: Setting a minimum number of rows when grouping, combined with time slicer

Hi @mrtn

Let me confirm your requirements:

For example:

For group a, it's "value" field has 40 rows (less than 100), so we don't plot the average of group a.

 

Right?

 

Best Regards

Maggie

 

mrtn Frequent Visitor
Frequent Visitor

Re: Setting a minimum number of rows when grouping, combined with time slicer

@v-juanli-msft, you are correct.

 

I do not want to plot the averages when the number of rows is less than say 100, as I think the estimates will be too noisy. I may want to use the same logic when plotting standard deviations or other statistical measures. 

 

 

mrtn Frequent Visitor
Frequent Visitor

Re: Setting a minimum number of rows when grouping, combined with time slicer

Hi again, 

 

I think the issue could be resolved by changing the ouput of the summarizecolumns columns command to be a non-static table. I believe this could have other uses as well. 

 

@v-juanli-msft 

 

Regards, 

Morten 

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 6 members 3,415 guests
Please welcome our newest community members: