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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
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.