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

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.

Reply
Justas4478
Post Patron
Post Patron

Sales mix % of total sales

Hello I am trying to create a measure to calculate Sales mix % of total sales.

I have to calculate how much sales in each row are as a percentage of the total sales at the bottom.

Here is example of the case.

sales.PNG   

Thanks

1 ACCEPTED SOLUTION
Justas4478
Post Patron
Post Patron

I manage to find solution that works for me.

IF (
        ISFILTERED ('Product Category'),
         (Actuals[Sales Value])
    /
        CALCULATE (
        (Actuals[Sales Value]),
        ALL ('Product Category')
    )
)

View solution in original post

3 REPLIES 3
Justas4478
Post Patron
Post Patron

I manage to find solution that works for me.

IF (
        ISFILTERED ('Product Category'),
         (Actuals[Sales Value])
    /
        CALCULATE (
        (Actuals[Sales Value]),
        ALL ('Product Category')
    )
)
Shaurya
Memorable Member
Memorable Member

Hi @Justas4478,

 

You can use:

 

% of Total = 'Table'[Sales]/(SUM('Table'[Sales]))

 

Then format the column as percentage.

 

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Graphical Comparison

My sales are a measure not a column so I cant use SUM on them.sales.PNG 

Is there different solution that works for measures?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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