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
Anonymous
Not applicable

Max Value in Line and stacked bar chart mot working

Hello,

 

I have a line and stacked bar chart and I am attemptign to show the max number of workdays with a specifc group and month for the line values. 

JeffG1269_0-1639147178766.jpeg

I have set the line value to be the Max of the AvgWorkDays column, but the value is much too high.  It is if the line values is summing rather than taking the Max.

JeffG1269_1-1639147312038.jpeg

Here is the underlying data for the month of June 2020.

JeffG1269_2-1639147373113.jpeg

I have attempted to create a measure the retrieves the MAX value based on the AssignmentCompletedYear, AssignmentCompletedMonth and LargeICR. I am trying to set the criteria in variables and then using the MAXX function, but I keep getting errors on setting the variables. 

 

Can someone provide me with a solution?

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Do you mean the max value of 2020-6 in visual should be 3 not 5? 

And please provide a sample file or some sample data, so that I can recreate a same pbix file.

 

Best Regards,

Community Support Team _Tang

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

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

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.