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.
Hello. I am new to using Power BI and cannot seem to achieve what I need.
My data comes from a microsoft SQL database and there are two tables linked together. A dollar value exist in one table, and the transaction type of the dollar value (whether an invoice or a credit) exists in a second table.
Here it my table called dTransactions. The highlighted item should be a negative value
This is my second table called dSplitInvoices. The highlighted item is the matching invoice and shows a C for transaction type.
I know I need to create a new column that would change the macthing C items to a negative value. I assume this would be with an if statement, but am not sure how to make it work. I tried this based off reading other posts, but it doesn't work. It just creates the column with the same data.
Any help would be appreicated.
Solved! Go to Solution.
You need first to merge the teo tables and retrieve the Transaction Type column from dSplitInvoices to dTransactions. Once done you can insert an if statement into "Replace Values" to change credit values to negative.
You need first to merge the teo tables and retrieve the Transaction Type column from dSplitInvoices to dTransactions. Once done you can insert an if statement into "Replace Values" to change credit values to negative.
Thank you so much!!! This is what I needed
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |