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
vishvz
New Member

CASE Statement to DAX

I want to create an expression like this using DAX  (new column) 

If fraudscore= 1 then return "TrancUSD" or else =0

 

 

Fraud score contain values 1 and 0.

 

regards

Vish

2 ACCEPTED SOLUTIONS
rocky09
Solution Sage
Solution Sage

@vishvz

try this

Column = IF(Table1[Fraud score]=1,"TranscUSD","0") 

View solution in original post

@vishvz

 

Are Fraudscore and TrancUSD columns??

 

Column =
IF ( Table1[Fraud score] = 1, Table1[TranscUSD], 0 )

View solution in original post

5 REPLIES 5
rocky09
Solution Sage
Solution Sage

@vishvz

try this

Column = IF(Table1[Fraud score]=1,"TranscUSD","0") 

not working 

@vishvz

Not working means? Can you please atleast provide the error which are getting? Also, Please post some data. So, we can help you on this.

@vishvz

 

Are Fraudscore and TrancUSD columns??

 

Column =
IF ( Table1[Fraud score] = 1, Table1[TranscUSD], 0 )

yes both are columns 

 

For example, fraud score has values 0 and 1 

 & 

transaction amount has values in USD 

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
Top Kudoed Authors