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 August 31st. Request your voucher.

Reply
J_EFC
Frequent Visitor

Sum with Multiple Criteria

Hi all,

 

Was looking for some help!

 

I'm looking to find out how much money was taken when a link was clicked on an email within 8 hours, for a particular user. 

 

The tables are:

 

1. Orders Table = Contains the details of the Order & Money Taken

2. Email table = Where the tracking of the email happens. So in actionID, 0 is email sent, 1 is email opened and 2 is link clicked.

 

I was looking to get a column in the email table with a sum of the revenue in the orders table where the UserID matches, the actionID is 2 and the date and time are within 8 hours. 

 

What would be the best approach for this?

 

Thanks! 

 

Orders Table  
    
UserIDDateTimeRevenue
XXXXX/XX/XXXX:XX£XX.XX
YYYYY/YY/YYYY:YY£YY.YY

 

Email Table   
     
EmailIDUserIDactioniddatetime
XXXXX2XX/XX/XXXX/XX/XX
YYYYY2YY/YY/YYYY/YY/YY
0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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