I struggle to create a visualization that updates an average value to weeks based on a Dynamic Measure.
I'm creating a dashboard to keep track of %usage of each person in a team. Each set of data (row) contains, [Hours], [Person], [EndOfWeek], [Week Number]. [Project], [ProjectType] that are in my table 'JobTime'
Doing this, I calculate total number of 'Hours' per Person, Per Week (37.5h). Visualizing this, I want to choose week numbers, and get a percentage on %utilization of a person based on the week interval I have chosen.
1. I created a Measure: [WeekIntervals] = Distinctcount(JobTime[Week Number]) to count no. of weeks.
2. I make a slicer to adjust the week interval and a Power BI Card that updates [WeekIntervals] based on what I slice.
3. I calculate no. of hours per person per week as a percentage by JobTime[Hours]/37.5/[WeekIntervals].
[WeekIntervals] is dynamic when looking at the Power BI Card, but not in data when I've put the Measure into the DAX Formula.
Is there any way to make a Dynamic Measure to work in a DAX formula when visualizing data? See figure below.
I'm creating a dashboard to keep track of %usage of each person in a team. Each set of data (row) contains, [Hours], [Person], [EndOfWeek], [Week Number]. [Project], [ProjectType] that are in my table 'JobTime'. 37.5 hours are the hours billed per person per week. I made a measure called [WeekInterval] that is the number of distinct weeks in [Week Number].
Bar plot below are hours per person, per week. The Values are calculated as [Hours]/37.5/[WeekInterval]. I want the bar plot values to update as I change the the slicer to account for different week intervals. Currently, this doesnt work, as it in the formula will just act as a static value even when I adjust my slicer.
Is there any way a Measure can change Values dynamically as a variable?
But it still doesnt update when I filter my list using Slicer. In the example below, I should get 84% on the person on top row, but I'm getting 18%. It's dividing by the total number of weeks in the list rather than the sliced number of weeks. Data and an example where slicer filters to 2 weeeks. It divides by [Week Interval]=9 instead of 2