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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Problem when visualizing in line and clustered column chart

Hi everyone,

I have a list of airplanes incidents

SalimTRABELSI_0-1661522332872.png

 

I'm trying to make a visual that contains the number of impacts monthly with a line or an area that shows the existence of mowing so I tried with the line and clustered column chart but I'm stuck since power bi count the number of yes and no also the count distinct function does not give me the desired chart 

SalimTRABELSI_1-1661522757552.pngSalimTRABELSI_2-1661522889021.png

what I want in the visual is that if there's a mowing (yes) the line's up if no it's down

Do you have any suggestions?

1 ACCEPTED SOLUTION
PVO3
Impactful Individual
Impactful Individual

Hi,

 

A bit hard to understand.

I think you need or 2 lines, OR a single line that displays the balace between the 2 OR only the 'Line 1' measure below.

You can start by trying:

Line 1 = CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "Yes")

Line 2 = CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "No")

OR

Balance =

CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "Yes") - 

CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "No")

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi  @Anonymous ,

Here are the steps you can follow:

1. Create calculated column.

count_group =
COUNTX(FILTER(ALL('Table'),MONTH('Table'[Date])=MONTH(EARLIER('Table'[Date]))),[Id])
Flag =
IF(
    'Table'[moving]="no",0,
MAXX(ALL('Table'),[count_group]))

2. Placed in Visual, both set to Max.

vyangliumsft_0-1661846094247.png

3. Result:

vyangliumsft_1-1661846094251.png

If you need pbix, please click here.

Problem when visualizing in line and clustered column chart.pbix

 

Best Regards,

Liu Yang

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

Anonymous
Not applicable

Hi @Anonymous 

I followed the steps but I didn't get the same result as you!

SalimTRABELSI_1-1662461225209.pngSalimTRABELSI_2-1662461258743.png

SalimTRABELSI_3-1662461362789.pngSalimTRABELSI_4-1662461389226.png

Let me know if there is any problem

thank you,

Salim

PVO3
Impactful Individual
Impactful Individual

Hi,

 

A bit hard to understand.

I think you need or 2 lines, OR a single line that displays the balace between the 2 OR only the 'Line 1' measure below.

You can start by trying:

Line 1 = CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "Yes")

Line 2 = CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "No")

OR

Balance =

CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "Yes") - 

CALCULATE(COUNTROWS( 'Table'),  'Table'[Mowing] = "No")

 

 

Anonymous
Not applicable

Hi @PVO3 

it might fix the problem but it's not well presented here's the result I get

what I trying to do is make one continuous line chart that increases if the value of mowing=yes and maintains 0 if mowing=no

SalimTRABELSI_0-1662460673328.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.