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 nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi
Trying to create a new table based on the imported data. Inthe new table I want to create 4 calc columns based on the row content.
I have value column but want to create 4 calc columns based on Estimate and PnL Line.
How do I do that? I am also open for editing in the query editor
Example attached:
Solved! Go to Solution.
Hi
I have solved it. The best/easiest/quickest way was to use the "conditional column" function in Query Editor.![]()
Another option is to create a new virtual table with aggregation
AggregatedPayments = SUMMARIZE (CALCULATETABLE ('Payments',Payments[TransactionReference] <> ""),
'Payments'[TransactionReference],"TotalPaidToInvoice",SUM ( 'Payments'[AllocationAmount] ))In my example, I wanted a table showing sum of payments per Transaction, but only where the transaction reference was not blank
This can be broken into two steps...
CALCULATETABLE ('Payments',Payments[TransactionReference] <> "")This creates a dataset based on the Payments table, filtering out blank references
the table is the the input for a SUMMARIZE function, which performs this aggregation
SUMMARIZE ([Result of CALCULATETABLE], 'Payments'[TransactionReference],"TotalPaidToInvoice",SUM ( 'Payments'[AllocationAmount] ))
This gives me the reference, and the sum of 'Allocation', calling the new field 'Total Paid To Invoice'
This then appears as a new dataset for me to work with (and can create new relationships based on it)
Hi
I have solved it. The best/easiest/quickest way was to use the "conditional column" function in Query Editor.![]()
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 38 | |
| 31 | |
| 27 |