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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Jeyeline
Helper III
Helper III

Error in setting up the dashboard for attendance involving multiple excel sheets in a workbook

Hello Team,

 

 We are creating an attendance dashboard using an excel source file (ref: https://www.linkedin.com/pulse/data-analysis-using-power-bi-hr-domain-syed-abrar-muhtasim/) . It consists of several sheets each shows the data of a month. The column headers are name, and days in month.

 

After loading these into powerbi, we could profile the data upto one month perfectly. However, the second and third month data follows on the row, instead it has to be on the column header as mentioned in the below screenshot.

Can anyone help on this?

Jeyeline_0-1726059588732.png

 

16 REPLIES 16
v-denglli-msft
Community Support
Community Support

Hi @ Jeyeline,

 

Based on the screenshot you provided, you are having trouble displaying multiple months of attendance information in a single Power BI table?

 

If so, I have not encountered your problem in my testing.

The sample data I created in a sheet in Excel is below.

The column headers are Name and Days in July and August.

vdengllimsft_0-1726127037171.png

Load into Power BI by way of Enter data and transform the data in Power Query.

Based on the link you provided, check the Name column, and then choose to /Unpivot Other Columns/.

vdengllimsft_1-1726127043879.png

vdengllimsft_2-1726127068260.png

 

You can convert the column containing the date from text to date.

vdengllimsft_3-1726127082149.png


Please see the attached PBIX for reference.

 

Best Regards,

Dengliang Li

 

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

AnkitKukreja
Super User
Super User

Hi! @Jeyeline 

 

Please ensure all the sheets have the same number of columns and match the names. According to the link, it seems straight forward, please try to follow those instructions and it should work.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hello @AnkitKukreja / @v-denglli-msft 

Every sheet follows same pattern. If you could understand the link, could you please assist on it.

 

1. We do have the dataset as in the link- months datasheet with same column(no of days)

2. We followed the steps and completed, but facing an issue where all the data from the sheet are fetched. Hence the column headers from the second sheet onwards lies in the datamodel. how to clean it up to have the dates alone in the column header just like the first month header. It is mentioned in the above screenshot.

 

Hope the problem statement is clear

Hi! @Jeyeline 

 

I think I got your point now, in query editor filter your column and choose does not contain and type Emp No as in Data.column 2. This will remove that particular row everytime you load the new data.

AnkitKukreja_0-1726136073962.png

 

Hope this will help, please let me know if I still misunderstood your problem.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hello @AnkitKukreja ,

 

 Thanks for your suggestion. But removing that line, will remove the date field across it. It has the data for 12 months which is in separate sheet. Each sheet has the same title which contains the number of days/dates for that particular month. Hence, removing that row eventually removed the days as well.

 

But for the dashboard, the days are mandatory. Could you help us on this?

Hi! @Jeyeline 
I would request you share sample excel sheet with me, please remove PII data and I can give it a try.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hi! @Jeyeline 

 

There is no way I can copy that data from the link that you shared, please share the excel or copy paste the data in case the issue persists.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hello @AnkitKukreja ,

 

 Can you help me on this, how would i share the excel sheet as I could not upload the spreadsheet here either in zipped format or as actual file

 

@Jeyeline 

You should see the option below. Else you can share link from your google drive or sharepoint for the same.

 

AnkitKukreja_1-1726584183671.png

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hello @AnkitKukreja ,

 I tried that, but it shows error prompt and restricted to add xlsx and .zip. Is there any extension that it supports?

 

@Jeyeline 

 

Are you expecting your data to look like 

 

AnkitKukreja_0-1726682497286.png

 

 

or 

AnkitKukreja_1-1726682524897.png

 

 

I am attaching the sample pbix. "All Data" table has combine data for all the months, please let me know if you need anything else on this.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hello @AnkitKukreja / @v-denglli-msft ,

 

 Thanks for your continuous support. I want to build a dashboard like this image.

Linkedin SourceLinkedin Source

 

In order to do this, i would like to build the data model where the employee details are mentioned in column1, the days for all months(each sheet has each month) maintained as individual columns. Refer the SS.

 

target Datamodeltarget Datamodel

@Jeyeline 

 

This is the expectation? 

AnkitKukreja_0-1726837206775.png

 

Please find attached pbix and look for "All data" table.

 

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Hello @AnkitKukreja ,

 

 Thanks for the support. I could complete this step, yet few more data cleaning is required to complete the entire step. I will complete and update

 

Regards,

Jeyeline

@Jeyeline 

 

Please try to send it in in DM or try to share the link of your personal google drive/sharepoint

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Please find the link

Drive Link 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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