Forum Discussion
creating a summury table from existing PBD table
- Anonymous9 years ago
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:
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])Regards,
Xiaoxin Sheng
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:
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])
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