Forum Discussion
Calculate category average based on selected record
- 2 years ago
Hi,
In the Table visual, you will see 10.43 in the Grand total row
- 2 years ago
I was able to solve this and have it display on cards as intended with the following measures:
AvgLeadTimeSelectedProject =AVERAGE('Metric Table'[Lead Time])AvgLeadTimeSameMarketSector =CALCULATE(AVERAGE('Metric Table'[Lead Time]),ALL('Project Table'),'Project Table'[Market Sector] = SELECTEDVALUE('Project Table'[Market Sector]))
Let me know if this link works for you Forum Sample Power BI.pbix
Hi,
In the attached PBI file, you will see the table working correctly with 73 being shown in the Grand total cell. What number do you want to see there?
- lukaszj972 years agoFrequent Visitor
Hi Ashish, The desired outcome would be the average lead time for all items on sites A and B. Therefore, the final answer in this sample should be 10.4 for average lead time when either A or B are selected.
I'm thinking I will have to utilize either allexcept() or Allselected() to get around using the project filter. Will report back if I have any successful attempts.
- Ashish_Mathur2 years agoSuper User
Hi,
In the Table visual, you will see 10.43 in the Grand total row