Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I am having some trouble making a new column in my table, which shows sales including VAT, but is dependent on currency
The columns I have are:
Lineamount - showing the amount per invoice line, ex VAT
Currencycode - showing the currency on that line
Organizationname - showing the name of the company
Warehousefiltercode2 - an unfortunately named column, which shows product group
Ideally, I would like to be able to show a matrix which likes like this (hopefully the picture I attached appears here...):
Which shows sales by Company, by product group, with 2 columns: Ex VAT and Inc VAT.
The matrix part of it is fine, I've done that.
What I want to be able to do (and am struggling with the forumla to do so) is create a new column which is 20% more than the Ex VAT column. As you can see above, currently it does not work. The additional complication is that some customers are in USD/EUR, where there is no VAT.
So in essence the column needs to look at the currency column, see if it is GBP, and if it is, multiply by 1.2. If it isn't multiply by 1.
If this was excel I would do some sort of nested IF Vlookup, not sure how to do it in DAX.
Below is some sample data
Organizationname | Currencycode | Warehousefiltercode2 | Lineamount |
Alpha | GBP | EFF | 147.20 |
Alpha | GBP | EAF | 3,792.00 |
Alpha | GBP | EOF | 354.00 |
Alpha | GBP | ADB | 6,742.00 |
Bravo | USD | EAF | 375.00 |
Bravo | USD | EOF | 153.48 |
Charlie | EUR | EOF | 92.70 |
Charlie | EUR | ADB | 1,278.60 |
Thanks!
Solved! Go to Solution.
Not sure I understand everything completely here but if you have your last table that you posted then you could create a column like:
Column = SWITCH([Currencycode], "GBP",[Lineamount] * 1.2, "EUR",[Lineamount] * 1.2, [Lineamount]*1 )
Not sure I understand everything completely here but if you have your last table that you posted then you could create a column like:
Column = SWITCH([Currencycode], "GBP",[Lineamount] * 1.2, "EUR",[Lineamount] * 1.2, [Lineamount]*1 )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |