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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to count rows in source and save count in PowerBI every week?

Hi All,

I have very basic requriment 

Data Source=CSV File on orginsational portal. This file gets refreshed by other team in    organistions I have no controle on this.

Problem= Every refresh overwrites previouse week counts.

Requriment=Count every week and Append existing record with new record.

My PowerQuery= After applying certian filters I need to count number rows on weekly basis  and  display in PowerBI report(I need to append rows on weekly basis).It is like taking snapshot of the source and appending data over the   time.  

 Option tried

A)Incremental Refresh!!I have tried Incremental  refresh because there is meaningful date column in source it is making hard. I have added today's date

B)Append!!I have also tried Append query option but everyweek it overwrites  previouse week.

  1. C) Create history table in PowerBI and insert row everyweek.

Using power Query  Table.InsertRows(from live refresh to exisiting table in PowerBI) This is not     poissble either using PowerQuery you cant insert rows from another  table.

I have been working as BI for last 10 years. I know this is very basic requirment in SQL Server insert into statment will do this easily for me. But I dont know how to achive this PowerBI.

 

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

Save files to a folder. Use a Folder query?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for you kind reponse. But how you going to automate this process for user in power BI services?

It is not clean solution I will be creating one excel file in folder per week. Just for one row. That is really big limitation arround PowerBI.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors