Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Create a table with unique value from duplicated ones with the latest data but registering its first

Hello,

 

I am new to Power Bi and I need your help to check if it is possible to create in power bi a table from another one which have sales opportunities updated every week (sometimes there is no change in opportunities for weeks).

 

IDAccount NameOpportunity NameOpportunity OwnerClient Buying MilestonesProbability (%)Opportunity Size (in K).amountClose Fiscal QuarterQualified OpportunityFOP NameForecast CategoryPartnersDate

 

My problem is that I need to create a sales funnel but opportunities ID are sometimes reused for some other new opportunity so the id is not really  a unique ID and it is impossible to record an opportunity as lost so in excel I combined ID with opportunity name to create a unique ID (UID = ID&OpportunityName). I also combine in sourcing table (Date&ID&OpportunityName).

 

Then I used this UID to create a pivot table as follow:

UIDAccount NameOpportunity NameMIN of DateMAX of Date

 

From pivot table I combine MAX_of_Date&UID and I use it to vlookup in the sourcing table and bring the latest value for every unique opportunity. The resulting table is as follow:

 

MAX DATE&UIDUIDAccount NameOpportunity NameMIN of DateMAX of DateLatest Opportunity SizeLatest Client Buyin MilestoneSolutionProposalShortlistedNegotiationWonLossStatusCountryAccountAgeClose Fiscal Quarter

 

I am sure that there should be millions of way to do it better and more efficient but unfortunately I don't know how could I do it.

 

If you could help me to figure out how could I do this in power bi I'd appreciate.

 

I found some posts for creating a table from other, using filter, naturalinnerjoin and summarizecolumns but I have not found the way to do it.

 

Thanks in advance for your support.

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

I think you can use addcolumns function with your raw table records and lookup relate other table fields that you need to use to design the graph.

Best Practices Using SUMMARIZE and ADDCOLUMNS 

After these steps, you can use summarize function to package the above result table to aggregate its records based on category fields.

All the secrets of SUMMARIZE 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.