Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am tracking KPIs for some sales reps, so I have a table of all the sales calls they made witih a column that shows what sales method they used (Cold Calls, Meeting, Etc.) Each sales rep has chosen a single type of method, and and goal number of calls for that method they must make a week, so in another table, I have the Sales Rep, the Method Type, and the Goal Number. I want to create a measure, where I count only the sales calls from the Sales Calls table that match the chosen type for that sales rep as defined in the KPI table.
So I want to get a count from Sales Calls where if I chose the context of "John", it only counts the rows where the 'Sales Calls'[Method] = 'KPI Settings'[KPI Method] for John (so count all the "A" calls for Jonh, "A" calls for Bob, and "B" calls for Tim).
The tables are related by Sales Rep.
Thanks in advance!
Flaviu
Solved! Go to Solution.
How about these 2 Measures?
Total Calls = COUNTROWS(SalesCalls) KPI Method Calls = CALCULATE ( [Total Calls], FILTER ( SalesCalls, SalesCalls[Method] = RELATED ( 'KPI Settings'[KPI Method] ) ) )
EDIT: I used M1 (A) , M2 (B), M3 (C)
How about these 2 Measures?
Total Calls = COUNTROWS(SalesCalls) KPI Method Calls = CALCULATE ( [Total Calls], FILTER ( SalesCalls, SalesCalls[Method] = RELATED ( 'KPI Settings'[KPI Method] ) ) )
EDIT: I used M1 (A) , M2 (B), M3 (C)
That worked perfectly! Thanks! I was really confused about how the RELATED function worked. I was getting lost trying to use LOOKUPVALUE function.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |