Forum Discussion
Erik_Debono
6 years agoAdvocate II
Dax Average with Distinct Filter
Hi All, I'm trying to filter a table (have provided a mock one below) where I filter by Distinct and a result. As you can see, the Cycle time will be the same for every ID but I only want to Aver...
- Anonymous6 years ago
Hi Erik_Debono -
Try the following:
Cycle Time Average = var _table = DISTINCT( SELECTCOLUMNS( FILTER('Cycle Time', [Result]<>"N/A"), "ID", [ID], "CycleTime", [CycleTime] ) ) return AVERAGEX(_table, [CycleTime])
amitchandak
6 years agoSuper User
This seems like very similar to sum of Averages problem
Refer
https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
In the calculation, you can replace Average with Max or Average. replace sum with Average
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601