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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Performance improvements in dax measure

Bllow measure is taking more time :

 

CALCULATE (
SUMX (
SUMMARIZE (
ALLSELECTED(table),
table[test_shr_grp_cd],
"total_Client",

CALCULATE (
MAX ( table[cr_utilisation_amt_cnt] )
,table[First_char_cred_shared_grp_Cd] = "G"
)

),
[total_Client]
),
table[test_grp_code(Y/N)] = 1
)

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

I'd like to suggest you take a look at the following blog that mentioned optimizing nested iterator performance:

Optimizing nested iterators in DAX - SQLBI

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous , Try like

 

sumx(summarize(filter(allselTable, table[First_char_cred_shared_grp_Cd] = "G" && table[test_grp_code(Y/N)] = 1), table[test_shr_grp_cd],
"total_Client",MAX ( table[cr_utilisation_amt_cnt] ) ),[_1])

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Top Solution Authors