Forum Discussion

o59393's avatar
o59393
Icon for Post Prodigy rankPost Prodigy
2 years ago
Solved

Pareto not working

Hi all   I have a Pareto formula that has some issues when the % of dedicated time column has repeated values:     For instance, all the 5.15% values have the same index value of 2 and the...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, o59393 
    I am sorry to reply to you so late.

    Create a new Index named Secondary Index in PowerQuery as a unique identifier and as a secondary sort.

     

    Close and Apply. Then create a new measure and try the following DAX expression:

     

    Index Test = 
     ROWNUMBER (
         ALLSELECTED ( 
            Template[Facet],
            Template[Tier 1: Process Facet],
            Template[Tier 2: Activity Facet]
          ),
         ORDERBY ( [Non Duplicate Hours Process/Activity 3],DESC, MAX('Template'[Secondary Index]),ASC )
     )

     

     

    Here is my Preview:

     

    How to Get Your Question Answered Quickly 

    Best Regards

    Yongkang Hua

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.