The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I need to dig deeper in Performance analizer, because the exact same visual sometime it takes:
and sometimes it just takes:
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....
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |