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

Too many data points- how to aggregate data points in line chart

Hi! What is the best way to aggregate data in the line chart? I am plotting with time as the axis, and the graph becomes way too noisy (about 1000 data points per day, showing a week at a time) I can change the axis to "date hierarchy", but then the most frequent data point option is per day.  

Thank you!

5 REPLIES 5
v-yangliu-msft
Community Support
Community Support

Hi  @andersrys ,

What do DLR fields represent and whether they have nothing to do with the fields on the X and Y axes will lead to the appearance of "not smooth then" on the line chart,can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

If you want the average for every minute:

Create some data: the current column for the rolling average

v-yangliu-msft_0-1611538648763.png

Here are the steps you can follow:

1. Create measure.

Expected Output (Average)_1 =
var _1=
MAX('Table'[timeobserved])
return
AVERAGEX(
    FILTER(
        SUMMARIZE(
            ALLSELECTED('Table'),
            [timeobserved],
            "Avg Value",AVERAGE('Table'[Current])
            ),
            [timeobserved]<=_1
            ),
            [Avg Value]
            )

2. Result.

 

v-yangliu-msft_1-1611538648767.png

 

You can downloaded PBIX file from here.

 

Best Regards

Liu Yang

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

amitchandak
Super User IV
Super User IV

@andersrys , If axis type is categorical then make continuous and check

 

Axis_type.png



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

@amitchandak I had it on continuous, so the axis was great. However, the graph itself is ugly because of the high number of data points (with different values). For example, it would be perfect if the average for every minute could be calculated before the graph was displayed. 

@andersrys , please share a screenshot of visual and column used (show visualization pane for value, axis etc)



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

I want to smoothen the orange graph:
andersrys_0-1611244765592.png

 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.