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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
KPro17
Frequent Visitor

Card in PowerbI not pulling the correct Data from Excel from SharePoint

Good Day,

I have 4 excel documents that are saved in SharePoint. In each excel document it has a tab called Availability that allows the user to enter if they took a business, sick or vacation day during the a specific month. At the end of the each month it has 3 additional columns named Business, Sick and Vacation which deducts the total amount of days taken each (business, sick and vacation) and it shows the employee's balance days remaining for the year.

I created a card in Powerbi to show the balance days for each but it is pull a high figure (e.g. if the balance vacation days for user X is 40 it is pulling 536)

Is there a way just to pull the correct number from the columns suggested?

3 REPLIES 3
KPro17
Frequent Visitor

Hi Pete,

 

Please see the attached documents. All four documents have the same availability and leave types tabs which was pulled from SharePoint into PowerBI. The Leave Types have the place holders for determining the business leave for each month (Bjan), the balance sick leave for each month (SJan) and balance vacation leave (VJan).  Once a user takes a specific leave during the course of the month, it will add the total respective leaves and take it away from the leave types tab holders and show the new balance Business (AO) Sick (AP) and Vacation (AQ).  

In powerbi, I would like to card to show the balance leave type represented in AO, AP, and AQ.

 

BA_Pete
Super User
Super User

Hi @KPro17 ,

 

On first scan, it sounds like you may have an issue with your model relationships. This behaviour is indicative of a crossjoin happening somewhere, but can't be sure without more information.

 

Can you provide copyable example data from all four of your SharePoint documents, as well as detail around what calculations you are trying perform across them please?

 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523#M6071... 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Query created when data pulled from SharePointQuery created when data pulled from SharePointplaceholder  for vacation countplaceholder for vacation countPlaceholder for sick countPlaceholder for sick countPlaceholder for  business countPlaceholder for business countformula to calculate balance business leaveformula to calculate balance business leaveformula to calculate balance Sick Leaveformula to calculate balance Sick Leaveformula to calculate balance vacation Leaveformula to calculate balance vacation Leave

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors