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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors