The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a sum Of Sales DAX measure in Power bi. I want show the Sales Share by Sales Sub region and Destination Office wise as Below.It should show 100% in row wise like below
Sales 2024 share | Destin 1 | Destin 2 | Destin 3 | Destin 4 | Destin 5 | Destin 6 | Destin 7 | Destin 8 | Destin 9 | Destin 10 | Total |
Sales subreg 1 | 17% | 1% | 10% | 10% | 12% | 10% | 10% | 10% | 10% | 10% | 100% |
Sales subreg 2 | 15% | 1% | 12% | 9% | 10.00% | 29% | 10% | 1% | 3% | 10% | 100% |
Sales subreg 3 | 15% | 11% | 10% | 9% | 10% | 10% | 9% | 8% | 10% | 8% | 100% |
I have Tried But It shows Like below
Solved! Go to Solution.
Thank you @bhanu_gautam .
but we shoud take 100% for every Sub region row
But It shows Like below
But we need Like below
Sales 2024 share | Destin 1 | Destin 2 | Destin 3 | Destin 4 | Destin 5 | Destin 6 | Destin 7 | Destin 8 | Destin 9 | Destin 10 | Total |
Sales subreg 1 | 17% | 1% | 10% | 10% | 12% | 10% | 10% | 10% | 10% | 10% | 100% |
Sales subreg 2 | 15% | 1% | 12% | 9% | 10.00% | 29% | 10% | 1% | 3% | 10% | 100% |
Sales subreg 3 | 15% | 11% | 10% | 9% | 10% | 10% | 9% | 8% | 10% | 8% | 100% |
Hi @DanduMani104 Try this:
Sales Share % =
DIVIDE(
SUM('TMR-Prev year'[ACTUAL_GROSS_SALE]),
CALCULATE(
SUM('TMR-Prev year'[ACTUAL_GROSS_SALE]),
ALLEXCEPT('TMR-Prev year', 'TMR-Prev year'[SALES_SUBREGION_KEY])
),
0
)
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
@DanduMani104, Can you paste workable format of DAX rather than image
Proud to be a Super User! |
|
@DanduMani104 , Try using
DAX
Sales Share % =
DIVIDE(
SUM('TMR-Prev year'[ACTUAL_GROSS_SALE]),
CALCULATE(
SUM('TMR-Prev year'[ACTUAL_GROSS_SALE]),
ALLEXCEPT('TMR-Prev year', 'TMR-Prev year'[SALES_SUBREGION_KEY])
),
0
)
Proud to be a Super User! |
|
Thank you @bhanu_gautam .
but we shoud take 100% for every Sub region row
But It shows Like below
But we need Like below
Sales 2024 share | Destin 1 | Destin 2 | Destin 3 | Destin 4 | Destin 5 | Destin 6 | Destin 7 | Destin 8 | Destin 9 | Destin 10 | Total |
Sales subreg 1 | 17% | 1% | 10% | 10% | 12% | 10% | 10% | 10% | 10% | 10% | 100% |
Sales subreg 2 | 15% | 1% | 12% | 9% | 10.00% | 29% | 10% | 1% | 3% | 10% | 100% |
Sales subreg 3 | 15% | 11% | 10% | 9% | 10% | 10% | 9% | 8% | 10% | 8% | 100% |
User | Count |
---|---|
24 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |