Forum Discussion
Maxx value returns sum instead of max value
The use of Summarize and count and max means count till this level(dim_time[time_hour24]) and then take max.
is this correct row context dim_time[time_hour24] ?
amitchandak , I want the max movements per hour. The dim_time is a time table and the column [time_hour24] represents the hours in 24 format. Meaning 1, 2 ...24
So I would like to count all the rows of the fact_location_inventory_transaction in an hour. So number of rows with same value in time_hour24. And take the max of all the values calculated. Independent of from/to date selection.
For some reason at a certain point, I get the sum of the max values instead of max of max values.
My dim_date table and dim_time table are separate tables, linked to the fact_location_inventory_transaction table. Could that have something to do with it?