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.
Good Evening,
I am in the process of trying to figure out how to get a duration Average where as the duration is already provided. My issue is getting the filter right as i need filter on each unique ID in a large table, grab each occurance of a name and its associated #(Duration), and then caluclate the average.
This is my query measure thus far,
I have isolated to one unique ID there which is id_sys_id and am trying to get the duration average between all the instances that say TOC_OPS.
Welcoming any suggestions, thanks in advance.
Solved! Go to Solution.
@Dalton948
Please try:
Ticket Time AVG =
VAR _CurrentElement_ID =
MAX ( 'Fabled Metric Table'[id_sys_id] )
VAR __Result =
CALCULATE (
AVERAGE ( 'Fabled Metric Table'[duration] ),
'Fabled Metric Table'[id_sys_id] = _CurrentElement_ID,
'Fabled Metric Table'[value_metric_instance] = "TOC_OPS"
)
RETURN
__Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
This worked pretty well, i also forgot to change the duration column to whole numbers. Once i checked that and with your formula, it worked like a charm. Thanks for your help!
@Dalton948
Please try:
Ticket Time AVG =
VAR _CurrentElement_ID =
MAX ( 'Fabled Metric Table'[id_sys_id] )
VAR __Result =
CALCULATE (
AVERAGE ( 'Fabled Metric Table'[duration] ),
'Fabled Metric Table'[id_sys_id] = _CurrentElement_ID,
'Fabled Metric Table'[value_metric_instance] = "TOC_OPS"
)
RETURN
__Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
16 | |
14 | |
8 | |
6 | |
6 |