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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Justas4478
Post Prodigy
Post Prodigy

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 Prodigy
Post Prodigy

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 Prodigy
Post Prodigy

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.