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

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.

Reply
Koliberus
Frequent Visitor

Column with count of email adress connected to serial number

Hello everyone,

Got problem with adding column that shows count of email adresses connected to serial number.
I have to seperated data sets (lets call them set A and B - both have "Serial Number" and "Email Adress" columns - relation is setted on "Serial Number"
I'm trying to get "valid check" columns between both.

I created separate Main Table in with:
- First column pull out with DISTINCT Serial Numbers from A Data;

- Second column COUNT number of B Data Serial Numbers in A Data based on first column;

- Third column check number of duplicated Serial Numbers in A Data;

- Fourth column does TRUE FALSE check for count of Serial Numbers in second and third count;

Now i need to create two separate columns that will show count of email adresses connected to serial numbers one from A and second from B Data in Main Table.

 

Aaaand... i'm stuck with that 😞

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @Koliberus ,

I cannot understand your meaning correctly, could you please provide more details with the desired output and pbix file without privacy information?

 

How to Get Your Question Answered Quickly 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank You for taking interest in my problem 🙂

I'm attaching pbix example.

My data sources are Tale A and Table B

Koliberus_0-1665563235986.png

I created Valid Check Table like this:

Koliberus_1-1665563303585.png

Formulas i used in this Table for specific columns are:

1. Serial Number = DISTINCT('Table A'[Serial Number])
2. Table B SN Count =
COUNTROWS (
    FILTER (
        'Table B',
        'Table B'[Serial Number] = EARLIER ( [Serial Number] )
    )
) +0

3. Table A SN Count =

COUNTROWS (
    FILTER (
        'Table A',
        'Table A'[Serial Number] = EARLIER ( [Serial Number] )
    )
) +0

4. Valid SN = if('Valid Check'[Table A SN Count]=1 && 'Valid Check'[Table B SN Count]=1, 1, 0)

 

What i need now is to create three new columns in Valid Check Table:
- Count of emails for each Serial Number from Table A
- Count of emails for each Serial Number from Table B

- true/false if emails counts for specific Serial Number from both Tables are the same or not

 

Best Regards
Patryk Kopyczynski

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors