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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to compare last week to this week when there are duplicate IDs

Hi everyone,

 

I've been trying to figure out this issue for about 12 hours total by now. I want to summarize dollars last week vs this week and be able to show the stage last week vs this week, even when there are duplicate IDs. I've tried appending queries, creating reference tables, and creating a variety of DAX formulas and filters, but nothing has worked so far. Please help!

 

Files: https://drive.google.com/drive/folders/1k2y9V19fEH9JSb6otMlP17l3ZFl1xZHw?usp=sharing 

 

What I'm aiming for

 

Screenshot 2021-02-14 195058.png

 

How it looks

 

 

Screenshot 2021-02-14 200655.png

 

 

Last Week

 

IDManagerRep NameStage Dollars 
ATomBob 1 $  226,000.00
AFernandaKevin1 $  155,000.00
AFernandaStacy1 $  155,000.00
BTomLacy3 $    78,000.00
BFernandaPaul3 $    55,000.00

 

This Week

 

IDManagerRep NameStage Dollars 
ATomBob 2 $  142,000.00
AFernandaKevin2 $  188,000.00
BTomLacy4 $    76,000.00
BTomJack4 $    10,000.00
BFernandaPaul4 $    66,000.00

 

1 ACCEPTED SOLUTION

@Anonymous , A common dimension with concatenated keys, Or more than one dimensions

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , If these are two tables you need to have common dimensions ID, Manager, Rep Name, Stage. These may be part of one or more dimensions. And Join these two table with these and then analyse together with common dimensions and this week and last week as measures

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak, do you recommend I create a unique ID in power query by concatenating those dimensions and use that to join the tables? Or what do you mean exactly? 

@Anonymous , A common dimension with concatenated keys, Or more than one dimensions

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors