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 September 15. Request your voucher.
Hi all,
What method should I be using if I were to achieve the same results as below?
SQL query:
It is similar to this:
Customer Table
Customer_details Table:
Expected Results (measure):
I would like to show only matched cust_id from two separate tables and sum the total up! Hopefully someone can guide me through this.
Thank you!
Solved! Go to Solution.
@Anonymous,
You may use DAX below to add a measure to Customer table.
Measure = VAR Cust_id = MAX ( Customer[Cust_id] ) RETURN SUMX ( FILTER ( Customer_details, Customer_details[Cust_id] = Cust_id ), Customer_details[Total] )
@Anonymous,
You may use DAX below to add a measure to Customer table.
Measure = VAR Cust_id = MAX ( Customer[Cust_id] ) RETURN SUMX ( FILTER ( Customer_details, Customer_details[Cust_id] = Cust_id ), Customer_details[Total] )
User | Count |
---|---|
56 | |
54 | |
54 | |
49 | |
30 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |