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 2 tables linked together: Employee table and Sales Order table (1:many relationship using Employee ID key and Created by Employee ID key)
I want to create a measure in Sales Order table that count number of sales order quantity created by people from Asia office.
so in the second table, sales document number 111,114,115 are created by employee 001 and 003 and they are all from Asia office according to the Employee table. The result should be 50+100+50 = 200
Solved! Go to Solution.
Hi @k943
Can you try this:
ALL SALES (ASIA) = CALCULATE(SUM(Sales[OrderQuantity]),ALL(Sales),Employee[Country] = "Asia")
Hugh
Hi @k943
Can you try this:
ALL SALES (ASIA) = CALCULATE(SUM(Sales[OrderQuantity]),ALL(Sales),Employee[Country] = "Asia")
Hugh
User | Count |
---|---|
80 | |
74 | |
41 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
53 | |
48 | |
47 |