cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
kracrde Frequent Visitor
Frequent Visitor

DAX formula to calculate currency factor

Hi all


I am new to Power BI and specially to DAX formulas Smiley Wink

I was wondering if some of you could help me out.

I have a table with a column containing "amount" and a columnt with the currency factor (as I have various currencies). I wanted to insert a a column which calculates the local currency by multiplying the amount by the factor, but I get zero values when the currency factor is 0. I have tried different DAX combinations but don't get it to work. Anyone an idea how I could get it to work?

 

thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: DAX formula to calculate currency factor

Perhaps something like:

 

IF([CurrencyFactor]=0,[Amount],[Amount]*[CurrencyFactor)

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Super User
Super User

Re: DAX formula to calculate currency factor

Perhaps something like:

 

IF([CurrencyFactor]=0,[Amount],[Amount]*[CurrencyFactor)

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

kracrde Frequent Visitor
Frequent Visitor

Re: DAX formula to calculate currency factor

Thank you very much Greg!

 

Your formula worked.

IF(Table1[Currency_Factor]=0;Table1[Amount];Table1[Amount]*Table1[Currency_Factor])

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 434 members 4,255 guests
Please welcome our newest community members: