I have a power pivot that does not include a primary key (no row or value is completely unique, they all include duplicates). A previous user had used a Concatenate to combine multiple fields and create a key, then used a VLookup to pull data from the table. VLookup doesn't play nice with power pivot and the data wasn't updating when we refreshed. Is there a way to add a measure or automatically create a field in the table that concats multiple other rows?

likeuplifting
Posting as :
works at
You are currently posting as works at

There are a couple of things here:

1. Never concatenate things (or at least never without a separator) to use as a match key
1.1 concatenate with separator is better, but (i) deciding what to do with duplicated and (ii) use =INDEX(FILTER()) is better, computationally speaking

2. Although a pivot (no matter the type) are different objects, all the cells there are treated the same as any other cell - using =GETPIVOTDATA() or directly referencing the cell should not result in different values
2.1 - ofc, the advantage of using =GETPIVOTDATA() is that if you change the layout of the pivot, it will keep the result you initially intended

3. I never recommend using pivots (although power pivot is better) - they are buggy, not reliable, they are harder to audit, etc.; however, assuming you want to go with it, the recommended path would be to export the data and reference it as a table - you won't get automatic updates such as with formulas (although you can turn it on at the cost of computational resources)

If you could provide a picture (WITH DUMMY DATA PLS) and detail a bit more what you want to do, we could work together on it

like

Not necessarily, but that’s a big issue - honestly, how many times that you concatenated you ‘ve checked for that edge case?

I don’t recommend concatenating it because it is faster (for the computer) to check different fields rather than a whole string (at least it is if you don’t organize it and use binary search or any optimized search algo), but for the average user I don’t think he/she should worry about it

like

You can add a column in your input data that is doing the concatenation meant to be the key (just make sure that key would be unigue).
Then add this in the "rows"of your pivot table, and remove the subtotals on it of course.
That's not very clean but it does the job

like

I was thinking if I could create a key within the pivot itself then I could replace the VLookup with a GetPivotData

Try XLOOKUP

Alright so I did find some pages confirming that xlookup is slower but the difference there is so marginal that by the time it would present a noticable issue you would either

A.) Be better off using power query because you are handling a massive amount of data

Or

B.) Need to call IT because if xlookup is going that slowly and you are not working with a large dataset, something else is slowing you down.

So it might be marginally slower but it has plenty of advantages

Related Posts

She’s a real bugger...

Post Photo
like

I want to learn more about the architecture designs of secure and scalable api, there are tons of documentation on internet where should I look? any specific website or blog will help.

This is my first job in a large corporate company, and I’m trying to gauge how long it normally takes to move from entry level to another internal position in the insurance industry. I have been applying internally for a year now and I am wondering if this is normal or if my company is just slow? I am a top performer, with great metrics, and I have some wonderful connections I’ve made who support me. I just can’t seem to move up. How long did it take you to move up? How many tries did it take?

like

Hi Guys,

Can someone refer me for Salesforce developer opening in HPE in India.

like

Anyone knows of legitimate consignment websites for luxury handbags in canada?

How do you handle billing disputes? Already feel like we’re a steal compared to other firms, but it’s the pits when clients kvetch about the bill after working hard on their matters. For five figure disputes, anyone recommend collections? Don’t really want to institute retainers, especially since it doesn’t seem common for our practice area.

like

Bengali Male here, single. Living in Pune.
Is anyone interested to be friends?

Might end up dating, if we get along well!

likefunny

Does PwC have any free access to learning sites such as Udacity, Coursera or Udemy to complete courses with certificate? I know EY has free access to many courses on Udemy!

funny

Don't miss out Southern Gerontological Society on April 11-15 2023! Recommended by Matt Hudson at 2022 NPA Annual Conference via Whova event app

like

Had a final round on Monday. How long should I wait to hear back?

likehelpful

Any tips for the functional interview for Amazon’s Contracts Manager position? Studying the leadership principles but don’t want to overlook the functional portion.

like

Hello Tigers

I have an ongoing discussion with
Tiger Analytics, have cleared R1 and have been told that there will be next round. Can you pls let me know abt R2 ? If it's more of Technical or Techno Managerial..?
What are the stages involved.

Tech: Azure
Exp: 12 yrs

#thanks
Tiger Analytics

like

If you are leaving your firm and putting in your two weeks notice, what should be on your checklist to make sure your transition is the smoothest, both for you and for the firm you’re leaving?

like

Had a great job interview. C-suite liked you & your ideas & seemed like they would offer. A day later, they change the job posting to show less experience is needed & took off $125k salary. Thoughts?

like

Recent college grad doing IT audit at a fairly well-established accounting firm (not Big 4, but top 10). College was good but not Ivy League or anything like that. Grades were around 3.4-3.5.

If my goal is to maximize my chances of working for MBB, which of these paths would you personally take?

1.) Stay on current team, try to get promoted as fast as possible

2.) Stay at current firm but try to switch from risk advisory to a management consulting team

3.) Get an MBA

4.) Other?

like

I’ve got a friend in Dubai who has experience in IB and VC at junior levels (in London and Dubai) and would like to break into consulting. He’s at a small cap VC at the moment and works not that challenging, and he wants to break into MBB or tier 2 for strategy. Anyone happy to look at his CV?

like

Google Hey I am finishing up 3rd round of google interviews, for software engineer position, does anyone know what the offer is for NYC? I have 2.5 YOE.

like

Hey fishes,
I am having 8+ years of experience in iOS.
I am holding offer of
TIAA & globant.
Both are offering same package. I am confused which one should I join? Please suggest.TIAA & Globant

like

How much does a consultant gets paid in Vancouver BC, withing big 4 with a 1.5 years of experience with a masters degree from US?

Additional Posts in Excel Genius

Any ideas on turning string data into numerical data in excel that’s faster/easier to automate/better than using text to columns? Wish I could use alteryx, but not an option for this use case.

like

What are some common reasons that a COUNTIF formula might not be working correctly? I'm using the correct range and value to count. I'm not seeing "ERROR" but the values aren't correct (it's not counting everything). Thx.

like

What’s the keyboard shortcut to get into the “insert options” dialogue when you’ve inserted a new row with Ctrl+Shift+Plus?

like

I created a macro to help me save time on this onetime task and now whenever I open my excel, a blank excel opens with the name of the macro. How do I get rid of it?

like

What’s the best way to summarize multiple amortization schedule. I have each schedule on a separate tab. On a master sheet can I do something where I can input a specific month and show my ST/LT ...

like

Struggling with this:
Suppose I want to shortlist companies that serve the priority industry vertical of a country. So I have the industries served by company (one column for each industry) and (cont)

I’m referencing a cell (numeric) to a text cell. Is there a way to format that number to include commas? See example in comments.

Anyone know what these badges are?

Post Photo
likefunny

Has anyone had an issue with index match and lookups returning NA when trying to manipulate data from a password protected workbook?

I’m calculating a bunch of totals and averages by category on one worksheet by filtering data in different categories from another worksheet. However, when I change the filters, the previously..(cont)

Is there an easy way to switch XLOOKUPS to INDEX MATCH? Have a large file with bunch of formulas that don't work on all client machines (different excel versions).

like

Anybody have the SQL server data mining add in on excel? Desperately need to run a really quick analysis through it but can’t configure it.

like

Still don't have xlookup. #fomo

like

This is dumb, but. How can I pull and average the numbers in column b associated with the 4 values in column a? So, (sum of all As/total number of As) without filtering?

Post Photo
like

Would anyone be willing to teach me vlookup?

like

Best websites to get more of a handle on Excel as a beginner-intermediate?

like

How can I add multiple characteristics within one cell and make sure that a pivot table can read both values independently if needed? E.g., I have a column titled “color” and in one cell I write “red” and the other “red, blue”. I’d like a pivot table / formula to be able to count that there are technically two “reds” in this data set. Any tips?

like

How do I set the formula to calculate “If x falls between 1-10, return 1-10, if it falls between 11-20, return 11-20, and so on”

like

What are your top excel functions you use in finance / accounting - besides vlookup - Pivots - sumifs - count - index. I have an interview coming up which will have excel based technical questions. Not sure what other functions are considered important in the accounting finance world.

like

Is there anything similar to the INDIRECT function that I can use to build a formula reference to another workbook? INDIRECT creates errors when the referenced workbook is closed..

like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal