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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PBIBee321
Regular Visitor

Reduce the number of data points for X by adding range

Hi All,

 

I basically want to plot a line chart with the below values:-

 

Now the challenge is instead of plotting against all the values in X axis , I want to plot the X axis in a range like  0,0.1,0.2,0.3 and so on and the values for the x that lies between x = 0 to 0.1 should be plotted against all its value for Y but not as individual points . so basically X should have 0,0.1,0.2,0.3  for the below values and all the values of X against Y should be plotted in the range 0,0.1,0.2 and 0.3 instead of plotting them as inidvidual points because it will make the X plot too big so I want to divide it into subcategory.If I individually mark X against Y as per my source table then it will occupy a lot of space and will not fit the view as well 

 

Please advice if any measure or calculated field or data table can handle this line chart.

 

My Source table is as below :-

 

XY
0.09424101.2
0.09728101.2
0.1003101.2
0.1034101.2
0.1064101.2
0.1094101.2
0.1125101.2
0.2098102
0.2128102.7
0.2158102.7
0.2189102.7
0.2219102.7
0.225102.7
0.301103.5
0.304103.5
0.307103.5
0.3101103.5

 

Guttu

1 REPLY 1
tamerj1
Super User
Super User

Hi @PBIBee321 
You can create a new column X1 = ROUNDUP ( 'Table'[X], 1 )
Then plot X1 against MAX ( 'Table'[Y] )
unless X and Y are measures?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.