Forum Discussion
Anonymous
5 years agoNot applicable
How to use variable while creating table?
Hi, I am having problem while trying to create new MonthlyData summary table. I am using the function below which gives me what I want however I would have to manualy update the value 18 every we...
- 5 years ago
You can try following DAX Code
MonthlyData =
var CurrentFW = CALCULATE(MAX([FiscalWeek]), FILTER(ALL('Epiphany TimeTable'),'Epiphany TimeTable'[Date] =TODAY()))
var result =
ADDCOLUMNS(
SUMMARIZE(WeeklyData, WeeklyData[FiscalMonth]),
"LYNetRevenue",CALCULATE(SUM(WeeklyData[LYNetRevenue]), WeeklyData[FiscalWeek] < CurrentFW ),
"TYNetRevenue",CALCULATE(SUM(WeeklyData[TYNetRevenue]), WeeklyData[FiscalWeek] < CurrentFW ))
RETURN
resultRegards,
Sayali
Anonymous
5 years agoNot applicable
Hi Anonymous ,
Whether your problem has been resolved? If yes, could you please mark your post as Answered? It will help the others in the community find the solution easily if they face the same problem with yours. Thank you.
Best Regards