Forum Discussion

Cyprix's avatar
Cyprix
Frequent Visitor
8 years ago
Solved

Data Relationship help

Hello Everyone,   New user to powerbi here. I am trying to create a report that when given a list of rooms and a date period, I can show how many times each room was logged as well as the day of th...
  • v-ljerr-msft's avatar
    8 years ago

    Hi Cyprix,

     

    If I understand you correctly, you should be able to firstly use the formula below to add a calculate column to get the day of the week.

    Day of Week = FORMAT(HospitalB[EndTime],"dddd")

     

    Then use the formula below to create a new measure to calculate how many times each room was completed.

    Count Of Completed = CALCULATE(COUNTA(HospitalB[StopReason]),HospitalB[StopReason]="Cycle Complete")

     

    And then you can show the Room column with the Day of Week column and the measure [Count Of Completed] on the Table visual. :smileyhappy:

     

    Regards