cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
capko
Helper I
Helper I

Filtering pareto

Hello,

 

I've a list of sales with a line each time an article is sold, the date and the sell amount. I've created a measure in order to do a Pareto analysis:

 

Pareto = 
VAR CostVar = [Total_Cost]
VAR All_CA = CALCULATE([Total_Cost],ALLSELECTED(Sales))

RETURN
DIVIDE(
SUMX(
    FILTER(
            SUMMARIZE(ALLSELECTED(Sales),Sales[Article],
                "CA", [Total_Cost]),
                    [CA] >= CostVar),
                        [CA]),
    Total_CA,0)

The result I obtain at the end is something like this:

 

capko_0-1680038446502.png

The only problem I have now it's that I cannot apply a filter on the CA[%].

 

Is there any way to apply a filter on this column up  to a certain value ?

 

3 REPLIES 3
amitchandak
Super User
Super User

@capko , Try like

 

Power BI Window: Pareto Analysis Again, 80% of sales, Order by Measure when REL position is used: https://youtu.be/GpoITi_tRIw

Thanks for you support !

 

I'm trying to replicate the video but I'm facing several problems. The most important one: 'WINDOW' is not recognised as a function, as well as 'ORDERBY' (it recognize 'ORDER BY') 😕

 

Am I doing something wrong ?

Well, I've checked and the 'WINDOW' function seems to be a new one included in another version of Power BI than the one I'm allow to use at work... There is any other way of doing exactly the same using the version of Power BI 2.107 ?

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors