March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello folks,
I have a scenario where I need help.
Objective is to calulate % population meeting the target, by:
I have two data tables: AHT Performance & Target
The formula would be simple: (Count of agents meeting target/ Total agents in the team or month)
I am enclosing the sample pbix file for your reference. % population meeting target.pbix
Any help/guidance will be highly appreciated.
Thanks,
Vivek
Solved! Go to Solution.
Figured out the solution:
Measure 1:
Population Count = COUNTROWS(dtTable)
Measure 2:
Meeting AHT Target =
CALCULATE (
[Population Count],
FILTER ( dtTable, [Avg Handle Time] <= RELATED ( dtTarget[AHT tgt] ) )
)
Measure 3:
% Population Meeting Target = DIVIDE([Meeting AHT Target],[Population Count])
Enclosing the sample pbix file here
Vivek
Hi,
I cannot visualise your expected result. Explain the business question and show the result clearly in a Table format with an explanation of how you arrived at the expected result.
Hello,
Thank you for your response.
Below are two sample tables for the expected results:
Hope this explains the requirement.
Thanks,
Vivek
Figured out the solution:
Measure 1:
Population Count = COUNTROWS(dtTable)
Measure 2:
Meeting AHT Target =
CALCULATE (
[Population Count],
FILTER ( dtTable, [Avg Handle Time] <= RELATED ( dtTarget[AHT tgt] ) )
)
Measure 3:
% Population Meeting Target = DIVIDE([Meeting AHT Target],[Population Count])
Enclosing the sample pbix file here
Vivek
Hi,
How did you compute the figures of 41, 38 45 etc. Please be descriptive/clear.
Hi @vivran22 ,
You could move the target to the main table with USERELATIONSHIP() function like the following DAX:
Talk tgt =
CALCULATE (
SELECTEDVALUE ( dtTarget[Talk tgt] ),
USERELATIONSHIP ( dtTarget[Product], dtTable[Product] )
)
Then you could use COUNTROWS() to get values.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |