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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.