Forum Discussion

cinderelly678's avatar
cinderelly678
Frequent Visitor
2 years ago
Solved

Help Removing TOPN

Hello, I am using the following query from performance analyzer to use in a Power Automated flow.   Can anyone help re-write this dax so that it does not include TOPN?   // DAX Query DEFINE VAR...
  • talespin's avatar
    2 years ago

    hi cinderelly678 ,

     

    Try this

     

    // DAX Query
    DEFINE
    VAR __DS0FilterTable =
    TREATAS({TRUE}, 'Trainee Skill Completions (History)'[Skill Is Active])

    VAR __DS0FilterTable2 =
    TREATAS({TRUE}, 'Trainee Skill Completions (History)'[Assignement Active (hide)])

    VAR __DS0FilterTable3 =
    TREATAS({"TES"}, 'Users (Trainees)'[Division])

    VAR __DS0Core =
    SUMMARIZECOLUMNS(
    'Users (Trainees)'[Division],
    'Users (Trainees)'[Office],
    'Users (Trainees)'[Department],
    'Users (Trainees)'[User ID],
    'Users (Trainees)'[User Display Name],
    'Skills'[Skill Product Line (BU)],
    'Skills'[Skill Platform / Group],
    'Skills'[Skill Subgroup],
    'Skills'[Skill Category],
    'Skills'[Skill Title],
    'Skills'[Skill ID],
    'FY Baseline (hide)'[Baseline Completion Rate],
    'Trainee Skill Assignments'[Current Skill Completion Rate],
    'Trainee Skill Assignments'[FY Target Percent],
    'Trainee Skill Assignments'[FY Goal Status],
    'Trainee Skill Assignments'[FY Target Goal Group],
    'Trainee Skill Assignments'[Baseline Tasks Required to Goal],
    'Trainee Skill Assignments'[Remaining Tasks Required to Certify],
    'Trainee Skill Assignments'[Skill Level After Goal],
    __DS0FilterTable,
    __DS0FilterTable2,
    __DS0FilterTable3,
    "Number_of_Requested_Tasks", 'Task Measures'[Number of Requested Tasks],
    "Remaining_Mandatory_Tasks", 'Task Measures'[Remaining Mandatory Tasks]
    )

    EVALUATE
    __DS0Core