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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
muktapurc
Regular Visitor

How to add a filed in line and stacked column chart

I have a line and stacked column chart plotted against year and annual product .

X axis -- year wise data plotted 

Y axis -- annual production 

Legend --- categories 

 

Now I want to add a field from a column which contains different values like 2022-Fs, 2023-fs , 2024- fs 

From these values I need to take only one value and plot it on secondary axis. But I am not getting that option to take a single filed. Instead it is taking entire column into the field values which will result into count 

3 REPLIES 3
BeaBF
Super User
Super User

@muktapurc Hi! You need to create a measure that only returns Annual Production for 2023-Fs, and blank for other rows. Then drop that measure into the Line Values section.
For example:

Prod_2023Fs =
CALCULATE(
SUM('Table'[Annual Production]),
'Table'[StatusYear] = "2023-Fs"
)

If you need to make this dynamic (like pick which StatusYear to plot from a slicer) — you can create a parameter table or a disconnected slicer and update your measure to respect the slicer selection.

 

BBF


💡 Did I answer your question? Mark my post as a solution!

👍 Kudos are appreciated

🔥 Proud to be a Super User!

Community News image 1920X1080.png

Thanks a lot for your reply. could I share you my measure ? It also exludes to condition. I can share you that measure 

@muktapurc yes! send me the measure and the problem 

BBF


💡 Did I answer your question? Mark my post as a solution!

👍 Kudos are appreciated

🔥 Proud to be a Super User!

Community News image 1920X1080.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors