Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi.
I have this table (a lot bigger, but just simplifying it), and a want to create a new column that is called "New provision fee %".
The provisionfee for order number O1 and O2 should really be 8, and the rest should be 10 (unchanged). Could somone help me with a formula for this column? Or is it possible to go and edit the data table precentages manually in some way?
Solved! Go to Solution.
@Anonymous , A new column like
if([order number] in {"O1", "O2"}, 8,10)
Hi,
If you want to do this in Dax you could use the following formula:
NewProvisionPerc =
SWITCH (
TRUE (),
TestTable[Order number] IN { "O1", "O2" }, 8,
TestTable[Provision%]
)
However, if possible you might want to solve this in the data source, or in Power query, since the DAX method will add a new column to your model next to the old one (unnecessary bulk). Via Power Query you could solve it with a conditional column. Once you have this new column the old one can be removed:
Hope that helps!
Regards,
Tim
Proud to be a Super User!
Hi,
If you want to do this in Dax you could use the following formula:
NewProvisionPerc =
SWITCH (
TRUE (),
TestTable[Order number] IN { "O1", "O2" }, 8,
TestTable[Provision%]
)
However, if possible you might want to solve this in the data source, or in Power query, since the DAX method will add a new column to your model next to the old one (unnecessary bulk). Via Power Query you could solve it with a conditional column. Once you have this new column the old one can be removed:
Hope that helps!
Regards,
Tim
Proud to be a Super User!