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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
kpavan999
Frequent Visitor

Help with line and stacked chart

In the below line and stacked column chart, can we show the values with "Y" as lines?

 

One option that i could think of is by creating 2 variables like below and have each of that in column values and line values, but not able to create measure like this. Any thoughts pls

 

1. score where flag=Y

2. score where flag=N

kpavan999_0-1635322451047.png

 

kpavan999_1-1635322538614.png

 

 

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

Hello, @kpavan999 

 

You can create meausures.

Like this:

Y = CALCULATE(MAX('Table'[score]),'Table'[Flag]="Y")
N = CALCULATE(MAX('Table'[score]),'Table'[Flag]="N")

 Then put N in column values and Y in line values.

vjaneygmsft_0-1635478401761.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,
Community Support Team _ Janey

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hello, @kpavan999 

 

You can create meausures.

Like this:

Y = CALCULATE(MAX('Table'[score]),'Table'[Flag]="Y")
N = CALCULATE(MAX('Table'[score]),'Table'[Flag]="N")

 Then put N in column values and Y in line values.

vjaneygmsft_0-1635478401761.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,
Community Support Team _ Janey

amitchandak
Super User
Super User

@kpavan999 , You need to create a measure score with flag Y and Flag with N and then use them as measures in stacked line or clustered line visual and show the measure with flag Y on line

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors