Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Line graph with correct value with slicer

Hi I have a table like this:

NameDateTypeMilesHoursMiles Per Hour
AAA11/1/2021Actual895        17.80
AAA11/2/2021Actual1104        27.50
AAA11/3/2021Actual854        21.25
BBB11/1/2021Actual1224        30.50
BBB11/2/2021Actual814        20.25
BBB11/3/2021Actual977        13.86
CCC11/1/2021Actual1135        22.60
CCC11/2/2021Actual987        14.00
CCC11/3/2021Actual1267        18.00

 

Miles Per Hour is Calculated by Miles/ Hour

I'm creating a trend line, with Date on the X axis and Miles Per Hour on the Y axis with Name on the slicer

You see that the problem comes when I unclick all the slicer, I want the "Miles Per Hour" to be the total "Miles" across all "Names" divided by the total "Hours" across all "Names" within each "Date"

But here, it is adding up all the "Miles Per Hour" for each "Name" in that "Date".

 

Does anyone know how to solve this?

 

6 Replies