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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Syndicate_Admin
Administrator
Administrator

Line graph with grouped data

Hello I appreciate that you can guide me with the following


I am trying to make a graph of lines in which I show myself in independent lines by dates the regions that have sold more than 50 million and those that are below that budget show them
grouped in a single line with the name "Other Regions"

The data table a region can be repeated a number of times and the sum of that region must be greater than 50 million to be graphed, if the sum of a certain region gives less than 50 million it must be grouped with the other regions that do not exceed the barrier of 50 million.

According to the data table I must show in the graph of lines, the independent regions 1 and 5 and the others grouped in a single line.

jhon98mun_1-1677613365590.png

Thank you.

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try:

First create a nwe column:

 

New Region = 
var _a = CALCULATE(SUM('Table'[VALOR]),FILTER('Table',[REGION]=EARLIER('Table'[REGION])))
return IF(_a>50000000,[REGION],"Other Regions")

 

Output:

vjianbolimsft_0-1677722667683.png

Then create the line chart:

vjianbolimsft_1-1677722693596.png

Final output:

vjianbolimsft_2-1677722712021.png

 

Best Regards,

Jianbo Li

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

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try:

First create a nwe column:

 

New Region = 
var _a = CALCULATE(SUM('Table'[VALOR]),FILTER('Table',[REGION]=EARLIER('Table'[REGION])))
return IF(_a>50000000,[REGION],"Other Regions")

 

Output:

vjianbolimsft_0-1677722667683.png

Then create the line chart:

vjianbolimsft_1-1677722693596.png

Final output:

vjianbolimsft_2-1677722712021.png

 

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors