Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello Everyone,
I would like to show Avg Sales in the Totals part but when I am enabling the TOTAL labels in the Stacked Column Chart, it is simply Summing up the Avg Sales, but my requirement is to show Avg of Avg [Sales]. What is the way around, I have tried using DAX INSCOPE() but that is working for MATRIX Total not in Column Chart Totals.
I am using Year wise Avg Sales stacked by Region.
Kindly help please. Need your suggestion on how to show those total at the avg sales at top of the bars.
Solved! Go to Solution.
Hi, @Sky20997
You just use the Line and stacked column chart.
Then create measures:
AvgSales = AVERAGE('Table'[SalesAmount])AvgOfAvgSales =
AVERAGEX(
SUMMARIZE(
'Table',
'Table'[Year],
"AvgSalesPerYear", [AvgSales]
),
[AvgSalesPerYear]
)
Add Year to the X-axis. Add the AvgOfAvgSales measure to the line y-axis. Add AvgSales to the column y-axis and add Region to the column legend. Here is my preview:
If you want to display total labels, you can turn them on in the format navigation bar
You can refer to the following link:
Showing the Total Value in Stacked Column Chart in Power BI - RADACAD
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Share the download link of the PBi file. Show the problem and the expected result clearly.
@Ashish_Mathur Sorry for the lack of information, but I maynot be able to share the pbix file as a whole, I have tried to explain my requirement in the image below.
Can you please suggest the best scenario for this ?
Hi, @Sky20997
Maybe you can use combined charts (line and stacked column charts) are implemented. I create a sample table and measures(Avg and TotalAvg).
AvgSales = AVERAGE('Table'[SalesAmount])TotalAvgSales = CALCULATE(AVERAGE('Table'[SalesAmount]), ALL('Table'[Region]))
Then put Avg measure in column y-axis and TotalAvg in line y-axis. Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you @Anonymous for the prompt reply, this solution may not be ideal for my scenario. As I am using aCombo Chart in the first place. I am showing YOY% trend in the line y-axis, it is the TOTALS were I would like to show something like this
What do you suggest, how can I achieve it ?
Hi, @Sky20997
You just use the Line and stacked column chart.
Then create measures:
AvgSales = AVERAGE('Table'[SalesAmount])AvgOfAvgSales =
AVERAGEX(
SUMMARIZE(
'Table',
'Table'[Year],
"AvgSalesPerYear", [AvgSales]
),
[AvgSalesPerYear]
)
Add Year to the X-axis. Add the AvgOfAvgSales measure to the line y-axis. Add AvgSales to the column y-axis and add Region to the column legend. Here is my preview:
If you want to display total labels, you can turn them on in the format navigation bar
You can refer to the following link:
Showing the Total Value in Stacked Column Chart in Power BI - RADACAD
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |