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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
ResearchDev
Helper II
Helper II

How to do this equivalent in Report Builder (code is in Crystal)

In Report builder how do I do something like this below if it is a parameter in Crystal? I setup the parameter in Reportbuilder and then Available values I specify values . In crystal the parameter has 4 different sort selections. Each case statement is the sort selection. It is one big SQL but based on what sort selection, the data comes out sorted in the specified way

Select {?Sort Options}
case 'DEFAULT' : {Late_Activities.RESP_RESOURCE}&{Late_Activities.COUNTY_NAME}&{Late_Activities.PIN}&{Late_Activities.ACTIVITY_ID}
case 'CNTY' : {Late_Activities.COUNTY_NAME}&{Late_Activities.PIN}&{Late_Activities.ACTIVITY_ID}
case 'PROJMGR' : {Late_Activities.PROJ_MGR_ID}&{Late_Activities.SCHED_MGR_ID}&{Late_Activities.RESP_RESOURCE}&{Late_Activities.PIN}&{Late_Activities.ACTIVITY_ID}
case 'ACT' : {Late_Activities.ACTIVITY_ID}&{Late_Activities.PIN}
case 'SCHEDS' : {Late_Activities.SS}&{Late_Activities.PIN}&{Late_Activities.ACTIVITY_ID}

1 ACCEPTED SOLUTION
Hei_aQing
Helper I
Helper I

Hi @ResearchDev ,

 

Try converting the above command to DAX?

SSRS Report Builder with DAX Query Support (mssqltips.com)

Best regards,

 

View solution in original post

1 REPLY 1
Hei_aQing
Helper I
Helper I

Hi @ResearchDev ,

 

Try converting the above command to DAX?

SSRS Report Builder with DAX Query Support (mssqltips.com)

Best regards,

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors