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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
snifer
Post Patron
Post Patron

calculate currency

"period amountcurrencysourcechange rate dkk actualchange rate dkk budget
1000euractual11.2
2000svebudget21
3000dkkactual100100

 

this is how my data are stored

this is the result wanted

result in dkk1000
 2000
 3000

 

my goal is to have everything in dkk

if the value is already in dkk just copy paste the amount

if values are different currency and based on "actual" source -> "period amount" change rate dkk actual"

if values are different currency and based on "budget" source -> "period amount" change rate dkk budget"

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@snifer

 

You can use an if statement in a new column

 

Calculated Column =
IF (
    Table[currency] = "dkk",
    Table[period amount],
    IF (
        Table[currency] <> "dkk"
            && Table[source] = "actual",
        Table[period amount] * Table[change rate dkk actual],
        IF (
            Table[currency] <> "dkk"
                && Table[source] = "budget",
            Table[period amount] * Table[change rate dkk budget]
        )
    )
)

 

View solution in original post

1 REPLY 1
themistoklis
Community Champion
Community Champion

@snifer

 

You can use an if statement in a new column

 

Calculated Column =
IF (
    Table[currency] = "dkk",
    Table[period amount],
    IF (
        Table[currency] <> "dkk"
            && Table[source] = "actual",
        Table[period amount] * Table[change rate dkk actual],
        IF (
            Table[currency] <> "dkk"
                && Table[source] = "budget",
            Table[period amount] * Table[change rate dkk budget]
        )
    )
)

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors