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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Divya904
Helper III
Helper III

How to write better DAX in terms of performance

Hi Experts,

 

I have created a measure in DAX as below and is giving me the required output. I am just wondering if there is any efficient way to write this calculation in DAX in terms of performance.

 

No. Of Successful Calls =

CALCULATE(COUNT(vw_z_m07[interactions]),

FILTER( vw_z_m07, vw_z_m07[business trans. type] = "ZB11"),

FILTER(vw_z_m07, vw_z_m07[current opportunity phase] in {"L50","L53"}),

FILTER(vw_z_m07, vw_z_m07[sales cycle] = "8"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL03010001"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL03010002"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL03010003"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL03050001"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL01230001"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL01240001"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL01430001"),

FILTER(vw_z_m07,vw_z_m07[category code] <> "A2ZSKL01440001") )

 

Thanks.

 

Regards,

 

1 ACCEPTED SOLUTION
Thejeswar
Super User
Super User

@Divya904,

Did you try something like the one below?

 

No. Of Successful Calls =

CALCULATE(COUNT(vw_z_m07[interactions]),
FILTER( vw_z_m07, vw_z_m07[business trans. type] = "ZB11" && vw_z_m07[current opportunity phase] in {"L50","L53"} && vw_z_m07[sales cycle] = "8" && ....))

View solution in original post

1 REPLY 1
Thejeswar
Super User
Super User

@Divya904,

Did you try something like the one below?

 

No. Of Successful Calls =

CALCULATE(COUNT(vw_z_m07[interactions]),
FILTER( vw_z_m07, vw_z_m07[business trans. type] = "ZB11" && vw_z_m07[current opportunity phase] in {"L50","L53"} && vw_z_m07[sales cycle] = "8" && ....))

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.