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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
ovonel
Post Prodigy
Post Prodigy

I am confused by performance analyzer?

The exact same visual sometime it takes:

ovonel_0-1675178492441.png

 

and sometimes it just takes:

ovonel_2-1675178552001.png

 

How is it possible?

 

 

Both are executing the exact same DAX query:

 

 

 

// DAX Query

DEFINE

  VAR __DS0FilterTable =

    TREATAS({"Engagement Manager"}, 'Engagement Role'[Engagement Role])

 

  VAR __DS0FilterTable2 =

    TREATAS({"Tim J"}, 'Employee Current'[Name])

 

  VAR __DS0FilterTable3 =

    TREATAS({"FY23 - 07 - Dec"}, 'Date'[FY and Month])

 

  VAR __DS0FilterTable4 =

    FILTER(

      KEEPFILTERS(VALUES('Date'[Month Offset])),

      AND('Date'[Month Offset] < 0, 'Date'[Month Offset] > -2)

    )

 

  VAR __DS0Core =

    SUMMARIZECOLUMNS(

      'Key Figures Header'[Header],

      'Key Figures Header'[SortOrder],

      __DS0FilterTable,

      __DS0FilterTable2,

      __DS0FilterTable3,

      __DS0FilterTable4,

      "Key_Figures_LTM", 'Calculations'[Key Figures LTM],

      "Key_Figures_LTM_LY", 'Calculations'[Key Figures LTM LY],

      "Key_Figures_Dev__LY", 'Calculations'[Key Figures Dev. LY],

      "Key_Figures_Growth__", 'Calculations'[Key Figures Growth %]

    )

 

  VAR __DS0PrimaryWindowed =

    TOPN(501, __DS0Core, 'Key Figures Header'[SortOrder], 1, 'Key Figures Header'[Header], 1)

 

EVALUATE

  __DS0PrimaryWindowed

 

ORDER BY

  'Key Figures Header'[SortOrder], 'Key Figures Header'[Header]

 

 

 

The only difference is that in the execution that takes LONGER , I am removing myself from the 'Read all' role, and I guess I can't jump over the RLS stuff... but i dont get why no RLS dax code is shown, if that is what is making it so slow....

0 REPLIES 0

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.