Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello, I would like to ask you for help. I need to calculate Total sales with PLN currency and EUR. I need to calculate in dax Total Sales with EUR currency (every month has different rate). Of course between these tables is relationship - many to 1
Solved! Go to Solution.
I think the DAX below should work, so long as your relationship is set up as I anticipate it is.
VAR Sales_in_Currency =
ADDCOLUMNS (
SUMMARIZE (
'PLN Table',
'PLN Table'[Date]
),
"Amt_In_Currency", SUM(Sales PLN),
"Rate",
CALCULATE (
SELECTEDVALUE ( 'EUR Table'[EUR] )
)
)
VAR calc =
SUMX (
Sales_in_Currency,
[Amt_In_Currency] * [Rate]
)
RETURN
calc
)
It's not clear what you tables are named, so I have done my best to make this easy to see.
If this works, please could you mark this as the solution?
Hi @Jackie003 one possible solution:
create 2 calculated columns in Sales table (order is important) and two measures (starting with M)
Proud to be a Super User!
I think the DAX below should work, so long as your relationship is set up as I anticipate it is.
VAR Sales_in_Currency =
ADDCOLUMNS (
SUMMARIZE (
'PLN Table',
'PLN Table'[Date]
),
"Amt_In_Currency", SUM(Sales PLN),
"Rate",
CALCULATE (
SELECTEDVALUE ( 'EUR Table'[EUR] )
)
)
VAR calc =
SUMX (
Sales_in_Currency,
[Amt_In_Currency] * [Rate]
)
RETURN
calc
)
It's not clear what you tables are named, so I have done my best to make this easy to see.
If this works, please could you mark this as the solution?
I think the DAX below should work, so long as your relationship is set up as I anticipate it is.
VAR Sales_in_Currency =
ADDCOLUMNS (
SUMMARIZE (
'PLN Table',
'PLN Table'[Date]
),
"Amt_In_Currency", SUM(Sales PLN),
"Rate",
CALCULATE (
SELECTEDVALUE ( 'EUR Table'[EUR] )
)
)
VAR calc =
SUMX (
Sales_in_Currency,
[Amt_In_Currency] * [Rate]
)
RETURN
calc
)
It's not clear what you tables are named, so I have done my best to make this easy to see.
If this works, please could you mark this as the solution?
Hi @Jackie003 you need solution in Excel with DAX or in Power BI?
Proud to be a Super User!
In Power Bi.
What's more, every month new currency rate is updated 🙂
Hi @Jackie003 one possible solution:
create 2 calculated columns in Sales table (order is important) and two measures (starting with M)
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |