Forum Discussion

carly_030's avatar
carly_030
Regular Visitor
2 years ago
Solved

Help with new measure

Is it possible for someone to tell me the measure I would need to calculate the available days for each month x rooms available e.g. Site C - October - 6 (rooms available) x  22 (Available days).  I ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi carly_030 ,

    If I understand correctly, the issue is that you want to create the measure to calculate the available days. Please try the following methods and check if they can solve your problem:

    1.Create the simple table.

     

     

     

    2.Create the new measure to calculate.

     

    Available Room Days = 
    var rooms = 
        SUMX(
            FILTER('Table room',
            'Table room'[Site] = "Ce" && 'Table room'[Month name] = "October" && 'Table room'[Rooms] = "Rooms available"
            ), 'Table room'[Available]
        )
    var days = 
        SUMX(
            FILTER(
            'Table ava',
            'Table ava'[Month name] = "October" && 'Table ava'[Available] = "Available Days"
            ), 'Table ava'[Available Days]
        )
    RETURN
        CALCULATE(rooms * days)
        

     

     

    3.Drag the measure into the table visual. The result is shown below.

     

    Best Regards,

    Wisdom Wu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.