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
mchacha
Frequent Visitor

Historical data - Source overwritten overnight

Hi! 

 

I'm having trouble to get an historical of my source to then be able to do measure like 'vs day - 1', 'vs LY' because it gets overwritten daily. 

 

  • I have a report that works fine which shows KPIs such as : 

Knowing that I have filters (Year, Period, Type of customers and so on) 

CampusNumber of customersAmount invoicedAverage priceAmount paidAmount pending% paid
Paris100010 000 00010 0008 500 0001 500 00085,00 %
Freiburg500500 0001 000450 00050 00090,00 %
Lausanne5068 0001 36054 40013 60080,00 %
Madrid300897 6542 992834 81862 83693,00 %
Total1 85011 465 65415 3529 839 2181 626 43685,81 %

 

=> I would like to know how much % paid we had for instance last day / month / year for the same filters. 

But also a breakdown per Payment status and how they evolve (the ones that were fully unpaid uncontrolled, do they pay in the end or do they cancel the invoice?). 

 

  • My source gets overwritten overnight, I simplified it : 

It's an Excel file (I can't link PowerBi to my company ERP) which is 35MB and has 201k lines. This is my main source, I've linked it to other excel sources (to have more qualitative information about the customers). 

I put in red the field that I need not to be overwritten

CampusCustomer codeAmount invoicedPaidPendingPayment datePayment statusPeriodYearType of customerType of invoice
Paris11289210100005000500010/10/2023Payment planT12024NewRegular
Freiburg1128920910001000003/10/2024PaidT12024Not newDeposit
Lausanne16933752136001360 Unpaid - UncontrolledT12024NewSpecial
Madrid225782952992,181496,091496,0910/10/2023Unpaid - ControlledT12024Not newRegular

 

My ideas and their limits : 

  1.  I put the payment date as a filter, but if a customer pays by instalment, it doesn't work. 
  2. I put a node in Knime to keep each source and add the date at the end and save it in a Sharepoint folder. In Powerbi, I duplicated my fact table, one to take the latest date and another table to take latest date - 1 (to have the day before). The issue is, my PowerBI takes already around 30 min to refresh (in service), thus I'm afraid it would take too much time. 

I think I'm complicating my life with ideas 2/ and I could maybe adjust my source to have the historical in it directly... 

Do you have any ideas? 

 

Thank you!!

2 REPLIES 2
danextian
Super User
Super User

There's no problem calculating how much were already paid at a given date but that the payment amount as well as the payment date should be in the data historically. For every transaction a new line should be created.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Indeed, I would need an historical of each column headers colored in red. 

But how to do it, that's what I'm unsure. 

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.