Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
DanduMani104
Helper III
Helper III

Need help :DAX Measure

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 shareDestin 1Destin 2Destin 3Destin 4Destin 5Destin 6Destin 7Destin 8Destin 9Destin 10Total
Sales subreg  117%1%10%10%12%10%10%10%10%10%100%
Sales subreg  215%1%12%9%10.00%29%10%1%3%10%100%
Sales subreg  315%11%10%9%10%10%9%8%10%8%100%


I have Tried But It shows Like below

DanduMani104_0-1737352649536.png

 

1 ACCEPTED SOLUTION

Thank you @bhanu_gautam .
but we shoud take 100% for every Sub region row
But It shows Like below

DanduMani104_0-1737354954075.png

But we need Like below

Sales 2024 shareDestin 1Destin 2Destin 3Destin 4Destin 5Destin 6Destin 7Destin 8Destin 9Destin 10Total
Sales subreg  117%1%10%10%12%10%10%10%10%10%100%
Sales subreg  215%1%12%9%10.00%29%10%1%3%10%100%
Sales subreg  315%11%10%9%10%10%9%8%10%8%100%

View solution in original post

5 REPLIES 5
shafiz_p
Super User
Super User

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

bhanu_gautam
Super User
Super User

@DanduMani104, Can you paste workable format of DAX rather than image




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu_gautam Here the DAX FUnction

Share % =
DIVIDE(
    SUM('TMR-Prev year'[ACTUAL_GROSS_SALE]),
    CALCULATE(
        SUM('TMR-Prev year'[ACTUAL_GROSS_SALE]),
        REMOVEFILTERS('TMR-Prev year'[DESTINATION_OFFICE_KEY], 'TMR-Prev year'[SALES_OFFICE_KEY]) -- Adjust column names
    ),
    0
)

@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
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thank you @bhanu_gautam .
but we shoud take 100% for every Sub region row
But It shows Like below

DanduMani104_0-1737354954075.png

But we need Like below

Sales 2024 shareDestin 1Destin 2Destin 3Destin 4Destin 5Destin 6Destin 7Destin 8Destin 9Destin 10Total
Sales subreg  117%1%10%10%12%10%10%10%10%10%100%
Sales subreg  215%1%12%9%10.00%29%10%1%3%10%100%
Sales subreg  315%11%10%9%10%10%9%8%10%8%100%

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.