Forum Discussion

wkeicher's avatar
wkeicher
Icon for Helper III rankHelper III
7 years ago
Solved

Calculating Event duration Hours by Resource and Date

I have a Table of events. Each Event has a date & duration( in hours). Each Event has a resource assigned through a relationship with an assignment table. . I am trying to build a visual of hours by resource and date.

My result is the same value for each resource by date. Also the date field (by way of Hierarchy) only shows the Number not the actual date.

  • parry2k's avatar
    parry2k
    7 years ago

    wkeicher issue is with resource table on many side. Either change the cross filter direction of relationship to both or write a measure use CROSSFILTER function in it.

  • Anonymous's avatar
    Anonymous
    7 years ago

    wkeicher - At issue here is that the Date table is not related to the fact table, so the calculation is counting all dates in the date table. As a best practice, you generally want to make relationships from your date dimension table to each fact table.

    Hope this helps,

    Nathan

15 Replies

  • wkeicher can you share tables relationship diagram and also what you are using in matrix for rows, columns, and value.

     

     

      • wkeicher's avatar
        wkeicher
        Icon for Helper III rankHelper III

        Rows = The Resource Name

        Coumns = Dates

        Hours = Hours assigned to the event

         

        Ideally - Once I get the correct hours, I will want to measure the hours per resouce/Hours in a work day to get Utilization %.

  • Anonymous's avatar
    Anonymous
    Not applicable

    when its a repeating value like that it more often than not a relationship problem where the filters are not flowing as you would expect. Any chance you could share the pbix file?