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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello guys,
Can someone please help me translate these formulas from Excel, to make them suitable for Power Query's calculated column.
= IF ([Clearing document]="";"Open";"Closed")
= IF ([Clearing document]=[Document number];"Payment";"Invoice")
Thanks,
Devon
Solved! Go to Solution.
Hi @DevonVanDam ,
Power query code as follows:
if [Clearing Document] = null or [Clearing Document] = "" then "Open" else "Closed"if [Clearing Document] = [Document number] then "Payment" else "Invoice"
In Power Query, go to Add Column tab, then Custom Column and paste each of these lines in.
Pete
Proud to be a Datanaut!
@DevonVanDam , In Dax
new column = IF (isbalnk([Clearing document]) || [Clearing document]="" ,"Open","Closed")
new column = IF ([Clearing document]=[Document number],"Payment","Invoice")
Hi @DevonVanDam ,
Power query code as follows:
if [Clearing Document] = null or [Clearing Document] = "" then "Open" else "Closed"if [Clearing Document] = [Document number] then "Payment" else "Invoice"
In Power Query, go to Add Column tab, then Custom Column and paste each of these lines in.
Pete
Proud to be a Datanaut!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 51 | |
| 36 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 77 | |
| 41 | |
| 26 | |
| 26 |