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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

how to convert this sql into dax

select count(1),tbl_defects_created.Fix version
from rally_report_db.tbl_defects_created
where summary like 'PP%' or summary like 'WR%'
group by tbl_defects_created.Fix version

1 REPLY 1
Amit2019
Frequent Visitor

Hi Below is the DAX function -
 
 
 
Table =
 
SELECTCOLUMNS(
                                          SUMMARIZE(
                                                                     CALCULATETABLE(tbl_defects_created,
                                                                                                      FILTER(tbl_defects_created,
                                                                                                                     OR( SEARCH("PP",tbl_defects_created[summary],1,BLANK()) =1 ,
                                                                                                                             SEARCH("WR",tbl_defects_created[summary],1,BLANK()) =1
                                                                                                                             )
                                                                                                                        )
                                                                                                                   ), 
                                                                                                  tbl_defects_created[fix_version],
                                                                                                 "Cnt",COUNTROWS(tbl_defects_created)
                                                                         ), 
                                                "Fixed_version",tbl_defects_created[fix_version],"Cnt",[Cnt]
                                        )
 
Thanks,
Amit Dhiman

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.