Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Transpose Data

Hello All! I have a question on how can i attain the report below. As you can see i have two tables: an appointment table and a date dimension table.
Working Day is a measure wherein it determines if a certain date falls on weekend or a weekday. Then, I get the sum of that field to get the total number of days work in a month. I played around the visuals but didnt get any luck.

 

 

 

PS: im a newbie in power bi

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Is this possible in power bi? Thank you so much!

  • It took me a long time to think about the title in question and your text. haha ha!! In case, you want the sum of the number of hours, is that it?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Actually this is what i want to achieve:

       

      User                   Reason      Duration                      No. of Days Work

      User1On-site Visit60 mins168 hrs
      User1Sick Leave480 mins168 hrs

       

       

      I used matrix however this what happens:

      Reason  On-site Visit Sick Leave 
       DurationNo. of Days WorkDurationNo. of Days WorkDurationNo. of Days Work
      User1  60 mins168480 mins 
             

       

       This is my setup in fields:

       

      RowsUser
      ColumnsReason
      ValuesDuration
       No. of Days Work