cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Calculated Column calculating Totals OR Create a New Table using Groupby function

Hey guys,

I'm still struggling with DAX commands but thanks to you guys I'm learning a lot and learning it fast too!

LaZZaNoVa61_0-1651664695184.png


I've got a list with all the e-mail interactions per customer in it.
XYZ-number being a unique customerID
Mailing_ID being the unique e-mail campaignID
Interaction_type consists of three options: RECIPIENT, OPEN, CLICK
Basically this column tells when customers have received an e-mail, opened an e-mail or clicked an e-mail.

I need to create a seperate table having unique mailing_id's with a column showing the Total Opens.

How can I do this?



 



1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Anonymous 

 

NEW TABLE = 
ADDCOLUMNS (
    VALUES('Table'[mailing_id]),
    "Total Opens",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            'Table'[interaction_type] = "OPEN"
        )
)

 


In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂

View solution in original post

2 REPLIES 2
v-cgao-msft
Community Support
Community Support

Hi @Anonymous,

 

May I ask if your problem has been solved? Did SpartaBI's post above help you? If any of the posts are helpful, then please consider accepting it as a solution to help other members find it faster. Many thanks!

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

SpartaBI
Community Champion
Community Champion

@Anonymous 

 

NEW TABLE = 
ADDCOLUMNS (
    VALUES('Table'[mailing_id]),
    "Total Opens",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            'Table'[interaction_type] = "OPEN"
        )
)

 


In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors