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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Stephane5959
Regular Visitor

How to calculate a mix% of my total sales based on selected filters

Hi,

 

I am trying to get a column giving me the % of total sales per item. I am using a formula using =Divide([sum of sales],([sum of sales],all[list of items]). However if i filter the pivot for some specific item list, it keeps giving me the % of Total and not the filtered set.

Is there a way to have the formula work based on total filtered % ?

 

Thanks a lot

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Stephane5959 

Replace your table names and field names.

Measure = 

Divide(
    [sum of sales],
    CALCULATE(
        [sum of sales],
        ALLSELECTED([list of items])
    )
)

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Stephane5959 

Replace your table names and field names.

Measure = 

Divide(
    [sum of sales],
    CALCULATE(
        [sum of sales],
        ALLSELECTED([list of items])
    )
)

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thank you so much !

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

Top Kudoed Authors