Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
Hoping you can help me with this one as I am going around in circles! I've got multiple lines some with a category and some with a job and i'm trying to keep both for reporting. The problem comes up when I try to do a lookup from sourcetransaction.uid to UID and i have many duplicates and many lines with null which I need it to ignore, I can't delete these. Also the sum of CD1 in the table below is $27,865.34 so i need to do a lookup to indicate not to keep that one under source Fin as I've got it in CD1, but i can't group CD1 as I want to be able to see each line. I've tried doing a unique key but i don't have any data in Fin that matches CD1 except for amount and where there are multiples that sum to the number I need that is being missed. Basically I am looking for f792617f-c325-457a-be63-bce63819cc9d in UID and then to flag it so if its source FIN account number 1-1110 only then i can remove it without removing all the others.
Any help would be so gratefully accepted!!
UIDCategory.DisplayIDAccount.DisplayIDJob.NameAmountTotalSourceThe Final AmountFinal DateSourceTransaction.UID
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1145 | Admin | -4748.55 | Fin | -4748.55 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1111 | Admin | -615.99 | Fin | -615.99 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1112 | Admin | -1898.04 | Fin | -1898.04 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1113 | Admin | -841.82 | Fin | -841.82 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1132 | Admin | -1862.48 | Fin | -1862.48 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1130 | Admin | -1658.12 | Fin | -1658.12 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1115 | Admin | -813.54 | Fin | -813.54 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1114 | Admin | -514.99 | Fin | -514.99 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1116 | Admin | -1045.98 | Fin | -1045.98 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1140 | Admin | -3964.66 | Fin | -3964.66 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1117 | Admin | -1425.46 | Fin | -1425.46 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1110 | Admin | -1083.17 | Fin | -1083.17 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1119 | Admin | -1356.41 | Fin | -1356.41 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1155 | Admin | -3576.57 | Fin | -3576.57 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 2-1135 | Admin | -2459.56 | Fin | -2459.56 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | ||
b22bd640-b5c8-4834-923d-0b8cd0e47362 | 1-1110 | -27865.34 | Fin | -27865.34 | 14/12/2018 | f792617f-c325-457a-be63-bce63819cc9d | |||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -615.99 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -1898.04 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -841.82 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -1862.48 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -1658.12 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -813.54 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -514.99 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -1045.98 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -3964.66 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -1425.46 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -1083.17 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -4748.55 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -1356.41 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -3576.57 | 14/12/2018 | ||||
f792617f-c325-457a-be63-bce63819cc9d | 101-Admin | 1-1110 | CD1 | -2459.56 | 14/12/2018 |
Solved! Go to Solution.
Thank you for your help, sorry I'm not good at posting stuff including links etc... I think the answer is
Please paste a sample of the desired outcome as well.
Ideally post link to file, as your samples headers have lost connection to your data.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Headers are
UID
Category.DisplayID
Account.DisplayID
Job.Name
Amount
Total
Source
The Final Amount
Final Date
SourceTransaction.UID
in excel i would do a vlookup and get f792617f-c325-457a-be63-bce63819cc9d, which is finding that in UID based on SourceTransaction UID, when i try a lookup in Power BI i get blanks because of all the duplicates and nulls that also exist I presume.. I've also tried concatenex, rank, related, find, search...
Basically trying to get f792617f-c325-457a-be63-bce63819cc9d based on UID column so i can then filter it out. Trying to recreate a trial balance where I can report on categories and jobs using all the line items 🙂 thanks for your help!!
Hi @Anonymous,
is this what you're after?: https://www.thebiccountant.com/2018/08/12/how-to-do-a-real-vlookup-false-in-power-query-or-power-bi/
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Thanks I did find that one and try it, didn't work for me unfortunately. Your blogs are always excellent!!!
Problem is, that I still don't understand your request.
So unless you're providing real sample data of your desired result (full table like described here for exammple: https://social.technet.microsoft.com/wiki/contents/articles/28212.how-to-ask-a-power-bipower-querypo... ) I cannot help you any further here.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Thank you for your help, sorry I'm not good at posting stuff including links etc... I think the answer is
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |