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
quintans1
Frequent Visitor

Cluster Column Chart needs a dynamic horizontal line

I have a tab, Cluster Column Example, where I have a Matrix, two score cards and two Cluster Column Charts. In the two cluster column charts, I have added the Average line that Power BI allows you to add. When I select a container in the Matrix, the columns in the cluster column chart update, but the average lines do not update. Is there another visualization and/or DAX that would serve as a dynamic average line whose value would match the values in the respective scorecards in the second image.

 

PBIX file link 

 

The cluster average line matches the scorecardsThe cluster average line matches the scorecardsThe cluster average line doesn't match the scorecardsThe cluster average line doesn't match the scorecards

2 REPLIES 2
amitchandak
Super User
Super User

@quintans1 , Create a new measure

 

averageX(Values(Table[Container]), [Your measure])

 

and then use it in the analytics pane using the constant line option and fx

https://docs.microsoft.com/en-us/power-bi/desktop-analytics-pane

 

Thank you, but that did not work. I have that formula and is shown in the scorecard. But when I use it as you suggested, it doesn't work.

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.