Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello, I need a little help, my problem is this, I have some values like this:
And i need to take the average for the Start hour BUT only in with the first value of the person that day and make it some graph like this
Right now it shows the first value of the day of all persons, but i dont know how to make the average of all the persons and put that on the graph (i transformed the hour in number format)
Solved! Go to Solution.
Create measures
min start hour =
CALCULATE (
MIN ( 'Table'[start hour] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[person]
= MAX ( 'Table'[person] )
&& 'Table'[date]
= MAX ( 'Table'[date] )
)
)
start hour number = HOUR([min start hour])
average = AVERAGEX('Table',[start hour number])
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Create measures
min start hour =
CALCULATE (
MIN ( 'Table'[start hour] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[person]
= MAX ( 'Table'[person] )
&& 'Table'[date]
= MAX ( 'Table'[date] )
)
)
start hour number = HOUR([min start hour])
average = AVERAGEX('Table',[start hour number])
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
69 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |