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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
romovaro
Responsive Resident
Responsive Resident

Comparing 2 tables

HI all

 

I have a question regarding comparing 2 tables. (same columns. The only difference is that in the Baseline we have the expected CUIDS x month and in the "Slipp Country " table we have the CUIDs that slipped)

 

romovaro_1-1675154982130.png

 

When crating the table, I show the correct #CUID Baseline x Month but the #CUID slippage is only correct for July

 

For example, Australia in August should show:

CUID BASeline= 16

CUID Slippage: 7 (but table is showing 11)

 

For example, Australia in september should show:

CUID Baseline= 14

CUID Slippage: 3 (but table is showing 😎

romovaro_2-1675155410197.png

 

the idea is to get both numbers in the table and then create the measure to show %slippage x month x country.

 

Thanks

 

@jgeddes 

 

4 REPLIES 4
romovaro
Responsive Resident
Responsive Resident

HI

 

Saw this solution from @selimovd but not really working for me. Do I miss something?

 

The idea is to check in the baseline against the CUIDS that slipped x month.

 

Matching Measure =
VAR vIntersectionTable =
INTERSECT (
    SUMMARIZE ( 'Slippage Country', 'Slippage Country'[CUID Slippage Country], 'Slippage Country'[Month] ),
    SUMMARIZE ( 'Baseline Country', 'Baseline Country'[CUID Baseline Country], 'Baseline Country'[Month] )
)
RETURN
IF( COUNTROWS( vIntersectionTable ) > 0, "Yes", "No" )
 
With this formula I get all Yes...but it's not true.
 
thanks

Hey @romovaro ,

 

what was the solution from me that didn't work?

 

Best regards
Denis

romovaro
Responsive Resident
Responsive Resident

Hi Selimovd.

 

I was trying to use your formula but I get all YES.  with the filter.

Matching Measure =
VAR vIntersectionTable =
INTERSECT (
    SUMMARIZE ( 'Slippage Country''Slippage Country'[CUID Slippage Country]'Slippage Country'[Month] ),
    SUMMARIZE ( 'Baseline Country''Baseline Country'[CUID Baseline Country]'Baseline Country'[Month] )
)
RETURN
IFCOUNTROWSvIntersectionTable ) > 0"Yes""No" )
 
 
The idea is that not all CUIDs slipped, therefore No should be expected too.
 
Currently PowerBI is also adding some duplicated. Current VLOOKUP is checking CUIDS and also provides the ones that didn't slipped.
 

What am I trying to create like a double VLOOKUP with a formula that says.

 

IF the CUID and Month of table 1 (Baseline) EQUALS CUID and Month of table 2 (Slipapge), Yes, otherwise No.

 
Thanks
romovaro
Responsive Resident
Responsive Resident

Hi Selimovd,

 

I have one table with 1534 CUIDs (Baseline table)

&  I have another table with 478 CUIDs (Cuid that slipped the Go Live Date)

 

I am trying to create a table that shows x month and Country the Baseline...how many CUIDs slipped and the % x country x month.

 

Real numbers should be:

July – 302 Baseline vs 90 slipped (30%)

Aug – 229 Baseline vs 78 slipped (34%)

Sep – 269 Baseline vs 83 slipped (31%)

Oct – 330 baseline vs 89 slipped (27%)

Nov – 277 Baseline vs 103 slipped (37%)

Dec – 127 baseline vs 35 slipped (28%)

Total – 1534 Baseline vs 478 slipped (31.16%)

romovaro_0-1675238428519.png

 

When I try to build the table I show correctly yhe CUID baseline but CUID slipped are wrong. It's showing wrong numbers.

 

Baseline Excel file looks like:

Client Name Country CUID Baseline Country Project Health SL_CUID Month
  Czech Republic 1000886CZ01 Green - 2022-07
  United Kingdom 1000886GB01 Green - 2022-07
  France ALLVFR01 Green - 2022-07
  Netherlands ALLVNL01 Green - 2022-07
  Singapore ALLVSG01 Green - 2022-07
  Canada ANYSCA01 Green - 2022-07
  Australia ASHDAU01 Green - 2022-07
  Lebanon 380227LB01 Green - 2022-07
  Lebanon 380227LB02 Green - 2022-07
  Canada CSAUCA01 Green - 2022-07
  Czech Republic DELLCZ01 Green - 2022-07
  United States 1000204US01 Green - 2022-07
  United States 1000204US02 Green - 2022-07
  Mexico 1000220MX01 Green - 2022-07
  United Kingdom 1000220GB01 Green - 2022-07
  United States 1000220US01 Green - 2022-07
  France 1000542FR01 Green - 2022-07
  France 1000542FR02 Green - 2022-07
  France 1000542FR03 Green - 2022-07
  France 1000542FR04 Green - 2022-07

 

And Slippage Excel file 

 

Client Name Country CUID Slippage Country Project Health SL_CUID Month
  Singapore 380305SG01 Green - 2022-07
  Singapore 380305SG02 Green - 2022-07
  France ALLVFR01 Green - 2022-07
  Netherlands ALLVNL01 Green - 2022-07
  Singapore ALLVSG01 Green - 2022-07
  Australia 1000061AU02 Green - 2022-07
  Australia 380227AU01 Green - 2022-07
  France 380221FR02 Green - 2022-07
  Netherlands 380291NL01 Green - 2022-07
  chile EIDUCL01 Green - 2022-07
  chile EIDUCL02 Green - 2022-07
  chile EIDUCL03 Green - 2022-07
  India 1000322IN01 Green - 2022-07
  Hong Kong EDGCHK01 Green - 2022-07
  Panama 1000501PA01 Green - 2022-07
  Venezuela 1000501VE01 Green - 2022-07
  Bulgaria HAPABG01 Green - 2022-07
  New Zealand ICESNZ02 Green - 2022-07
  United States 380306US01 Green - 2022-07
  France 380263FR01 Green - 2022-07
  United kingdom 1000464GB01 Green - 2022-07
  United Arab Emirates 1000301AE01 Green - 2022-07
  United kingdom 380245GB01 Green - 2022-07
  United kingdom 380245GB02 Green - 2022-07
  Mexico 1000267MX01 Green - 2022-07
  Mexico 1000267MX02 Green - 2022-07

 

What I was trying with your formula is to match the slipped CUIDs using CUID and Month from the Baseline table vs CUID and month from the SLippage Table.

 

Matching Measure =
VAR vIntersectionTable =
INTERSECT (
    SUMMARIZE ( 'Slippage Country''Slippage Country'[CUID Slippage Country]'Slippage Country'[Month] ),
    SUMMARIZE ( 'Baseline Country''Baseline Country'[CUID Baseline Country]'Baseline Country'[Month] )
)
RETURN
IFCOUNTROWSvIntersectionTable ) > 0"Yes""No" )

 

But everything is showing "yes" .

 

Tried different formulas to add the slipped CUIDs in the table but not showing the good numbers.

Slipped2 = IF('Baseline Country'[CUID] IN VALUES ('Slippage Country'[CUID]),"True","False")
 

If I don't mix the tables....i get the correct "slippage" numbers (Blue square)...but when combined with the other table, numbers are different

 

 

romovaro_0-1675249625286.png

@jgeddes 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.