The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a big data below is just a sample:
Status | Annual Amount | Paid Amount | Exchange rate | Factor | Total
A | 2400 | 2000 | 7.8 | 12 | Annual Amount x Exhchange rate x Factor
B | 3270 | 620 | 7.8 | 12 | Paid Amount x Exhchange rate x Factor
How to write a formaul when Status =A or B then Total = above formula, the result need to show in the same column. Thank you!!!
Solved! Go to Solution.
Here you are...
= Table.AddColumn(Source, "Total", each if [Status] = "A" then [Annual Amount] * [Exchange Rate] * [Factor] else [Annual Amount] * [Exchange Rate] * [Factor], Currency.Type)
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
Here you are...
= Table.AddColumn(Source, "Total", each if [Status] = "A" then [Annual Amount] * [Exchange Rate] * [Factor] else [Annual Amount] * [Exchange Rate] * [Factor], Currency.Type)
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User