The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table Bounced Emails as follow:
Email Bounce_Type
a@gmail.com hard
a@gmail.com soft
b@gmail.com hard
c@gmail.com soft
As you can see, this table has no unique ID column! E-mails may repeat.
I want to sum over the first 2 columns like this.
Email Hard count Soft Count
a@gmail.com 1 1
b@gmail.com 1 0
c@gmail.com 0 1
I tried group by options but it did not yield good results.
Could somebody help me?
Thanks!
Freelensia
Solved! Go to Solution.
I ended up doing this:
I ended up doing this:
Hi,
Create a matrix visual. Drag Email to the row labels, Boune_type to the column labels and write this measure
=COUNTROWS(Data)
Hope this helps.
I think you could do that with 2 measures. 1 for each (hard, soft), the idea would then be to setup an IF statement to populate the field if it is hard or soft.
So a calculation you could do would be
ishard = If(Table1[BounceType] = "hard", 1, null) issoft = If(Table1[BounceType] = "soft", 1, null)
last step would just be to count the values
Thanks for the answer!
Sorry but I am completely new to PQ. Could you provide a bit more details on each step?
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
29 |
User | Count |
---|---|
94 | |
80 | |
55 | |
48 | |
48 |