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
ResearchDev
Helper II
Helper II

Convert If ISNull and Select Case from Crystal to Report Builder

What is the best approach of converting Crystal code expressions to a PowerBi Report Builder expression? The I am not very familiar on how to set this up. Could you show when how to get 
the logic started in this?
Thanks
----------------------------------------

if Sum ({PROPOSALVENDOR.AWARDED}, {PROPOSAL.CALLORDER}) = 0 then
(if {PROPOSALVENDOR.VENDORRANKING} = 1 then
(shared numberVar ProposalVendor_ID := {PROPOSALVENDOR.PROPOSALVENDOR_ID};
shared numberVar BidTotal := {PROPOSALVENDOR.BIDTOTAL};
shared stringVar Vendor := {REFVENDOR_DBE.VENDORNAME}))
else if Sum ({PROPOSALVENDOR.AWARDED}, {PROPOSAL.CALLORDER}) <> 0 and {PROPOSALVENDOR.AWARDED} = 1 then
(shared numberVar ProposalVendor_ID := {PROPOSALVENDOR.PROPOSALVENDOR_ID};
shared numberVar BidTotal := {PROPOSALVENDOR.BIDTOTAL};
shared stringVar Vendor := {REFVENDOR_DBE.VENDORNAME});

if shared numberVar ProposalVendor_ID <> 0 and {PROPOSALVENDOR.AWARDED} <= 1 then
shared numberVar ProposalVendor_ID;
shared stringVar Vendor;
shared numberVar BidTotal;

2 REPLIES 2
ResearchDev
Helper II
Helper II

This is for Report Builder and not PowerBI Dashboard. The Report builder is like the SSRS version but a stand alone. The above code is for 1 field only. There are many textbox with many expressions some easy while others like this or more.

davehus
Memorable Member
Memorable Member

Hi @ResearchDev , I'd suggest creating this in power query using a conditional column.

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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