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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors