Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
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:
Table:
| Reason Code | ID |
| AR | 1 |
| UR | 2 |
| SR | 3 |
| 8 Week | 4 |
Measure
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.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |