Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
carly_030
Regular Visitor

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 want to be able to include this information within the top table but can't get it to split by month.  Hope this makes sense

 

carly_030_0-1706727093147.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

vjiewumsft_0-1708414008664.png

vjiewumsft_1-1708414015931.png

 

 

 

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.

vjiewumsft_2-1708414066871.png

 

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.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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.

vjiewumsft_0-1708414008664.png

vjiewumsft_1-1708414015931.png

 

 

 

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.

vjiewumsft_2-1708414066871.png

 

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.

 

TomMartens
Super User
Super User

Hey @carly_030 ,

 

without knowing anything about the underlying semantic model it's not possible.

Consider creating a pbix file that contains sample data but still reflects your semantic model (tables, relationships, columns, calculated columns, and measures). Upload the pbix file OneDrive, Google Drive, or Dropbox and share the link. If you are using a spreadsheet to create the sample data, share the spreadsheet as well.

 

Do not forget to describe the expected output.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors