Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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)
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)
| User | Count |
|---|---|
| 12 | |
| 8 | |
| 5 | |
| 5 | |
| 5 |