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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Harpreet_14
Frequent Visitor

In Pareto Chart small values are coming after large values for some IDs(Criteria to filter report

 

Hi, I have created a pareto chart and used the following dax:

 

Var _total = CALCULATE(

              [Total tickets]

             ,ALLSELECTED('public Table_Live'[Final_Group]))

 

Var _Current = [Total tickets]

Var _sumtable = SUMMARIZE(

                ALLSELECTED('public  Table_Live'),''public  Table_Live''[Final_Group],"@count",[Total tickets])

 

Var _Cumulativesum = SUMX(

                     FILTER(_sumtable,[Total tickets]>= _Current),[Total tickets])

 

    RETURN

    DIVIDE(_Cumulativesum,_total)


Other Dax:

 Pareto Cumulative % =
IF(
    ISINSCOPE('public  Table_Live'[Final_group]),
    Var _AllSelectedFinalgroup = ALLSELECTED('public  Table_Live'[Final_group]))
    Var _FGtable = ADDCOLUMNS(_AllSelectedApp,"@Count",[Total tickets])
    Var _Currentcount = [Total tickets]
    Var _CumFGtable = FILTER(_FGtable,[@Count]>= _Currentcount)
    Var _CumFG = SUMX(_CumFGtable,[@Count])
    Var _AllSelectedFGCount = CALCULATE([Total tickets],_AllSelectedFinalgroup)
    Var _Result = DIVIDE(_CumFG,_AllSelectedFGCount)
    RETURN
    _Result
)

 

 

For most of the Ids's Pareto chart is coming right , increasing from lowest to largest and completing at 100%

but for few client Id's Smaller Values are coming after large value.

 

Please help!  Need Urgent help!!!

Harpreet_14_0-1700844073696.jpeg

 

 

 

1 REPLY 1
Fowmy
Super User
Super User

@Harpreet_14 

Please check your sorting.

I made a video some time back on solving such problems where there are identical values appear, please check it out: https://www.youtube.com/watch?v=8aDSztj9pmU


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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.