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
kala2
Helper III
Helper III

Line and stacked column chart, prevent columns from continuous if data are same

I have a stacked line column chart:

kala2_0-1645200546061.png

Is it possible to remove the repeating columns if values are the same?

Expected Senario:

kala2_1-1645200617092.png

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @kala2 ,

 

Create a measure like below and add it to visual filter.

Measure = 
var _max = CALCULATE(MAX('Table'[sales]),ALLSELECTED('Table'))
var _year = CALCULATE(MIN('Table'[year]),FILTER(ALLSELECTED('Table'),'Table'[sales]=_max))
var _month = CALCULATE(MIN('Table'[month]),FILTER(ALLSELECTED('Table'),'Table'[sales]=_max))
return
IF(SELECTEDVALUE('Table'[year])>=_year&&SELECTEDVALUE('Table'[month])>_month,0,1)

1.PNG

 

Best Regards,

Jay

Anonymous
Not applicable

Hi @kala2 ,

 

The information was not clear enough.

Are you want to remove all repeating columns or the repeating columns at the end of visual.

For example:

jan 10

feb 10

mar 20

apr 20

Result1:

jan 10

feb 10

mar 20

Result2:

jan 10

mar 20

Are you want result1 or result2?

 

Best Regards,

Jay

Hi @Anonymous, Thanks for the info,

My running total works until april 23. 

The problem is that i dont have values for may 23 so the chart continues until the end 

If you look in my example

kala2_1-1645809738327.png

 

And then with the measure applied January - April is missing

kala2_2-1645813326784.png

 

Anonymous
Not applicable

Hi @kala2 ,

 

So you have repeated columns not just at the end of the visual and you want remove all repeated columns?

The two screenshots you showed above are different.

 

Best Regards,

Jay

hi @Anonymous ,

I want to remove all the repeating columns at the end of visual.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.