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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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?


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors