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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DAX calculate totals for each table

Hello guys,

I'm stucked right here but i believe also that something is missing and don't what.

I'm sure any of you can help me.

I have a table (sum report) that shows me for each day, beside other fields, reservation ID, Day, room name, value, etc.

I have another table that gives me for each room name the total of rooms. By the way, this table is made of the first one, only grouped.

I have already made a report wich shows me the room name, number of rooms booked and a total value, by a certain day.

What i need to know is the total rooms for each type of room, so i can get the % occupancy, for that particular day, week or month.

I've done this but of course it's not working:

 

Qty Rooms by types = SUMX('Summary Reports Room Table', 'Summary Reports Room Table'[Rooms], FILTER('Summary Reports', 'Summary Reports'[Location_RoomType]))

 

The tables are related by the field location room type.

 

Thank you very much for your help

Pedro

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may check if the following post helps.

https://community.powerbi.com/t5/Desktop/Subtotal-Percentages/m-p/313658#M139139

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

Share the base data and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

i'm sorry...it's kinda confidential data....can't you help anyway?

Stachu
Community Champion
Community Champion

can you share anonymised data?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.