Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I want to calculate the average hours worked by Carer YTD . I am using the measure TotalHours average per CarerName =
AVERAGEX(
KEEPFILTERS(VALUES('vw_PivotWagesHrs'[CarerName])),
CALCULATE(SUM('vw_PivotWagesHrs'[TotalHours]))
)
This gives me what I want if I choose a particular week from a slicer. (TotalHours/Count of Carers)
Problem is when I don't have a Week selected. I get:
So it's only dividing TotalHours (303.69 for e.g) by 13 when it should be sum of count of carers.
How do I account for this in my measure?
Thanks,
Gerry
Hi @android1,
So it's only dividing TotalHours (303.69 for e.g) by 13 when it should be sum of count of carers.
I'm not sure I understand your requirement totally. So the expected result(303.69 for e.g) should be 3947.98/(13+16+22+23+24+26+27) ?
In addition, could you also post your real table structures with some sample data? So that we can better assist on this issue.
Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
76 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |