Forum Discussion

JoelMTaylor's avatar
JoelMTaylor
New Member
3 years ago
Solved

Performance Analyzer DAX Query run through Power Automate returns error: More than 1 result...

Hello everyone,   I am running the Power Automate action "Run a query against a dataset" with the advice from the Blog (and fourmoo and Curbal).    I copied the DAX Query from the Performance ana...
  • johnt75's avatar
    3 years ago

    There are 2 EVALUATE statements, the first one is returning the values without the grand total and the second one is returning everything including the grand total. Decide which one you want in your power flow and delete the other EVALUATE statement

  • johnt75's avatar
    johnt75
    3 years ago

    Delete everything from the first EVALUATE to the end and replace it with

    EVALUATE __DS0PrimaryShowAll 
    ORDER BY
      [IsGrandTotalRowTotal] DESC,
      [v0_Grand_Total] DESC,
      'Students'[Firstname],
      'Students'[LASTNAME],
      'Students'[Year],
      'Students'[HC]