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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DAX - %contribution for status measure filed to particular years

hi everyone,

 

i have sample super store table. and i calculated "Actual Sales". now i wanted to show "Actual sales" %contribution for each status on particular year.

 

can any one help on this. data provided in this link.

 

Sample-Store-Status.jpg.

 

Thanks in advance

 

regards

venu

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Please try the measure below.

Measure 2 = 
VAR totalforeachyear =
    CALCULATE (
        SUM ( 'Table1'[Actual sales] ),
        ALLEXCEPT ( Table1, 'Table1'[Year] )
    )
VAR salesforeachstatus =
    CALCULATE (
        SUM ( 'Table1'[Actual sales] ),
        ALLEXCEPT ( Table1, Table1[Status_], Table1[Year] )
    )
RETURN
    salesforeachstatus / totalforeachyear

Here is the output.

Capture.PNG

More details, please refer to my attachment.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

 

anybody help on this... my sample output in this link.

Looks like you need

a) a measure to SUM [Actual Sal] taking into account Year and Status.

b) a measure to SUM [Actual Sal] taking into account Year

Then DIVIDE a by b

 

That should give you a start

Anonymous
Not applicable

@HotChilli  Thanks for your response.... that is not working....

Hi @Anonymous ,

Please try the measure below.

Measure 2 = 
VAR totalforeachyear =
    CALCULATE (
        SUM ( 'Table1'[Actual sales] ),
        ALLEXCEPT ( Table1, 'Table1'[Year] )
    )
VAR salesforeachstatus =
    CALCULATE (
        SUM ( 'Table1'[Actual sales] ),
        ALLEXCEPT ( Table1, Table1[Status_], Table1[Year] )
    )
RETURN
    salesforeachstatus / totalforeachyear

Here is the output.

Capture.PNG

More details, please refer to my attachment.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.