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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

Average Weekly Sales

I need to include the Average value of the below 8 - week average of our $ by Reason Code.  Is there a way to include in the chart the value of the $ amount over the 8 week period?




Super User
Super User

Hi @BrettM ,


For this you need to have a new table with the values of your Reason Code and a 8 Week average value then create a measure similar to:



Reason Code ID
AR 1
UR 2
SR 3
8 Week 4



Value for chart = SWITCH ( SELECTEDVALUE(NewTable[Reason Code]),
                            "8 Week", [Measure for 8 week],
                            CALCULATE([Measure for other values], Table[ReasonCode] in Values (NewTable[Reason Code])

Now use the new table values as a legend on your chart.


Miguel Félix

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

Proud to be a Super User!

Check out my blog: Power BI em Português

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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