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.
Hi Community,
how can i write expression for 100% staked bar chart.
Sample data....
BI Tool Area Sales Qlikview Europe 100 Qlikview North America 200 Qlikview Scandinavia 300 Qlikview South America 125 Spotfire Europe 352 Spotfire North America 65 Spotfire Scandinavia 95 Spotfire South America 46 PowerBI Europe 58 PowerBI North America 54 PowerBI Scandinavia 23 PowerBI South America 156 Qlik Sense Europe 292 Qlik Sense North America 60 Qlik Sense Scandinavia 300 Qlik Sense South America 80
I have to show
Dimensions: BI Tools and Area
general expression like Sum(Sales)/Sum(ALL Sales)
Please can any one help me...
Thanks in Advance.....
Solved! Go to Solution.
Following is one of the ways to achieve this
= DIVIDE(SUM('Table'[Sales]),CALCULATE(SUM([Sales]),FILTER(ALL('Table'),[Area]<>"")))
Hi @POWER_TESTING,
Actually, if you use a 100% stacked bar chart to display above data, there is no need to write expression, it will calculate percentage (sales/total sales) automatically. Please see:
If I have something misunderstood, please provide more description about your desired output. Please illustare how to Sum(Sales) and what is ALL Sales. Some sales per [BI tool] or per [Area] or acorss whole table?
Regards,
Yuliana Gu
Following is one of the ways to achieve this
= DIVIDE(SUM('Table'[Sales]),CALCULATE(SUM([Sales]),FILTER(ALL('Table'),[Area]<>"")))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
107 | |
88 | |
76 | |
67 |
User | Count |
---|---|
126 | |
111 | |
100 | |
83 | |
71 |