Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have following kind of value
I need to calculate % share of each sales person against Zone Total. Following is the format of the required representation
Not be able to figure out how to write the dax for the % share.
Solved! Go to Solution.
hi @angshu
try to plot a matrix visual with
1) source column
2) a calculated column like:
YYMM = FORMAT(DATE([Year], [Month], 1), "mmm-yy")
3) two measures like:
Total Sales = SUM(data[TotalSales])
% of Share of Zone =
DIVIDE(
SUM(data[TotalSales]),
CALCULATE(
SUM(data[TotalSales]),
ALL(data[Source])
)
)*2
it worked like:
Thank you for your reply. Since there will be some filters in this page I may have to change the dax for % share and to include the source column in the ALL filter. Let me try
hi @angshu
try to plot a matrix visual with
1) source column
2) a calculated column like:
YYMM = FORMAT(DATE([Year], [Month], 1), "mmm-yy")
3) two measures like:
Total Sales = SUM(data[TotalSales])
% of Share of Zone =
DIVIDE(
SUM(data[TotalSales]),
CALCULATE(
SUM(data[TotalSales]),
ALL(data[Source])
)
)*2
it worked like:
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |