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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to create report by line in which each line is independent formular from many table

I work on the hospitality industry.

I have a very simply report on excel and I want to use power BI to create this report but it seem very difficult to do that in Power BI.

My template report is as following:

1. Number of room avaible to sold = Total existing room in table Room statistic by date, month, year by Hotel

2. Number of room sold = Total room sold in table Room statistic by date, month, year by Hotel

3. Breakfast F&B cover = Total guest use buffet => Come from SKF talbe

4. Lunch F&B Cover = Total guest use lunch buffet  => Come from SKF table

5. Average F&B per cover = Total F&B revenue (in Finance table)/Total F&B Cover (in SKF table)

So how can  I create above report that include many formular and its data come from many table in Power BI.

Please help me in this case because the problem is not in data, it is due to funtion in power bi.

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Thanks to rajulshah's suggestions, please check the links from his suggestions, it would help you a lot.

Besides, to answer your questions with detailed solution, please tell me what your table structure and relationships among tables.

 

Here is an exmaple:

to answer your 1,2 questions, i assump you have the table Room statistic as below:

Capture9.JPG

You could create a date table, create relationships between tables.

calendar = CALENDARAUTO()

Capture10.JPG

Create measures in table Room statistic, add columns and measures in a matrix table as below:

Capture8.JPG

Number of room avaible to sold = CALCULATE(COUNT('Room statistic'[room id]),FILTER('Room statistic','Room statistic'[status]="on sale"))

Number of room sold = CALCULATE(COUNT('Room statistic'[room id]),FILTER('Room statistic','Room statistic'[status]="was sold"))

 

For other questions, could you share more information?

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Thanks to rajulshah's suggestions, please check the links from his suggestions, it would help you a lot.

Besides, to answer your questions with detailed solution, please tell me what your table structure and relationships among tables.

 

Here is an exmaple:

to answer your 1,2 questions, i assump you have the table Room statistic as below:

Capture9.JPG

You could create a date table, create relationships between tables.

calendar = CALENDARAUTO()

Capture10.JPG

Create measures in table Room statistic, add columns and measures in a matrix table as below:

Capture8.JPG

Number of room avaible to sold = CALCULATE(COUNT('Room statistic'[room id]),FILTER('Room statistic','Room statistic'[status]="on sale"))

Number of room sold = CALCULATE(COUNT('Room statistic'[room id]),FILTER('Room statistic','Room statistic'[status]="was sold"))

 

For other questions, could you share more information?

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

rajulshah
Resident Rockstar
Resident Rockstar

Hello @Anonymous ,

 

So basically I believe you want to replicate from Excel to Power BI. 

 

You can fetch your data in Power BI Desktop. Please refer link below:
https://docs.microsoft.com/en-us/power-bi/service-desktop-files

Set relationships in Power BI Desktop. Please refer link below:
https://docs.microsoft.com/en-us/power-bi/desktop-create-and-manage-relationships

 

And then create measures and plot them in the visulaizations:
https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-measures
https://docs.microsoft.com/en-us/power-bi/desktop-measures

Also, there are enormous links which gives you guided instructions to do the same.

Hope I understood your issue correctly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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