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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.