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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
gpiero
Skilled Sharer
Skilled Sharer

creating a summury table from existing PBD table

I have created a report that summarize values for each storage location using data come from ERP every week.

Thanks to previous advices I have got in this forum it works properly.

 

But now the Company would like to store the summary data each week just in order to keep the trend under controll.

 

I have created a new table Dashboard Stock Values to record data only for test.

 

Stock.JPG

 

But I wonder how I could transfer automatically the  data avoiding any manual data input 52 times each year.

Stock values are calculated using measures.

 

Stock1.JPG

 

Any help wil be appreciated.

Thanks in advance.

If I can...
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gpiero,

 

Based on your description, you want to get the weekly summary of your records, right?

You can refer to below formula to get weekly summary data(weeknum function😞

 

Base table:
Capture5.PNG 

 

Measures:

WeekNumber = WEEKNUM(MAX('Table'[Date]))

 

Weekly Summary =
var currDate=MAX('Table'[Date])
var CurrWeekNo=WEEKNUM(MAX('Table'[Date]))
return
SUMX(FILTER(ALL('Table'),AND(WEEKNUM('Table'[Date])=CurrWeekNo,YEAR([Date])=YEAR(currDate))),'Table'[Amount])

 

Capture6.PNG

 

Regards,
Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @gpiero,

 

Based on your description, you want to get the weekly summary of your records, right?

You can refer to below formula to get weekly summary data(weeknum function😞

 

Base table:
Capture5.PNG 

 

Measures:

WeekNumber = WEEKNUM(MAX('Table'[Date]))

 

Weekly Summary =
var currDate=MAX('Table'[Date])
var CurrWeekNo=WEEKNUM(MAX('Table'[Date]))
return
SUMX(FILTER(ALL('Table'),AND(WEEKNUM('Table'[Date])=CurrWeekNo,YEAR([Date])=YEAR(currDate))),'Table'[Amount])

 

Capture6.PNG

 

Regards,
Xiaoxin Sheng

@Anonymous

many thanks for your help.

 

I'll try to apply your advice, altough I have not understood how this function will add a new row each week in the table Dashboard Stock Values.

 

 

gpiero

If I can...
Anonymous
Not applicable

@gpiero

 

Could you be a little more specific in what is the output exxpected and some sample data to work out a solution.

 

Cheers

CheenuSing

@CheenuSing

 

my goal would be fill tha table Dashboard Stock Values (1st pct) automatically each time (weekly) the table MB52 will be refreshed by data extracted from ERP each week.

 

The measures existing in the table MB52.... contanins the value to transfer in the Dashboard.

Then I will add a row each week and every chart, report or analisys wil be based on the Dashbord Stock Values.

 

Thanks

 

gpiero

 

 

If I can...

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.