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
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
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @v-jayw-msft, 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

 

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

hi @v-jayw-msft ,

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

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.