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
ANM_97
Helper IV
Helper IV

Transpose Currency Risk function

Hello!

 

How can I implement this function in DAX syntax?

iif (Currency= „RON”, „No”, case lower(RiskCoverage) when „no” then „Yes” when „Yes” then „No” end) as [Currency_Risk]

 

Column „RiskCoverage” contains this values: „Da” / „Nu”.
 
Thank you~

 

 

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @ANM_97  create column as below

New column=IF(table[Currency]="RON","NO",if(table[riskCoverage]="Yes","NO","YES"))

 

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

 

 

View solution in original post

@ANM_97 , Like this

New measure=IF(max(table[Currency])="RON","NO", switch( true(),lower(max(table[riskCoverage]))="yes","NO", lower(max(table[riskCoverage]))="no","YES"))

 

Row context will play a role

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
ANM_97
Helper IV
Helper IV

It works!
Thank you very much! ~

 

 

ANM_97
Helper IV
Helper IV

Hi,

Thanks for the answers! 

Could I use a measure instead of a new column?

 

@ANM_97 , Like this

New measure=IF(max(table[Currency])="RON","NO", switch( true(),lower(max(table[riskCoverage]))="yes","NO", lower(max(table[riskCoverage]))="no","YES"))

 

Row context will play a role

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@ANM_97 

try like


Try as
New column=IF(table[Currency]="RON","NO", switch( true(),lower(table[riskCoverage])="yes","NO", lower(table[riskCoverage])="no","YES"))

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @ANM_97  create column as below

New column=IF(table[Currency]="RON","NO",if(table[riskCoverage]="Yes","NO","YES"))

 

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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