The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Though the table shows 6 planned leaves by 4 people when I calculate the Average Value should consider only four names because the same person applies multiple leaves.
What I want = SUM [planned leave]/Count[planned leave]
Count of planned leave should be 4 instead of 6
Solved! Go to Solution.
you can try this
Measure = sum('Table (2)'[Planned Leave])/ CALCULATE(DISTINCTCOUNT('Table (2)'[Employee Name]),FILTER('Table (2)',NOT ISBLANK('Table (2)'[Planned Leave])))
Proud to be a Super User!
you can try this
Measure = sum('Table (2)'[Planned Leave])/ CALCULATE(DISTINCTCOUNT('Table (2)'[Employee Name]),FILTER('Table (2)',NOT ISBLANK('Table (2)'[Planned Leave])))
Proud to be a Super User!