Hi,
i would like to start using the Summarize and ADD Column formulas.
i managed to create to use the formula that will create new virtual columns for me but i dont understand how to use them
for example: i have created the below formula that create a virtual table with 8 columns ( Sales Current Year,Sales Last Year,Qty Current Year,Qty LY,Current Avg Price,LY Avg Price,Qty_Diff,Price_Diff)
now i want,for example, to present in a table the Sum of the virtual column :Price_Diff
how can i use this column?
thanks
------------------------------------------------------------------
Z-TTest Summerize = var Summmarize_ByItem= SUMMARIZE('IT-Sales Transactions','IT-Sales Transactions'[Item Num])
var CurrentAvgPrice=[Sales Current Year]/[Sales Qty Current Year]
var LastAvgPrice=[Sales Last Year]/[Sales Qty Last Year]
var QtyDiff=[Sales Qty Current Year]-[Sales Qty Last Year]
return
ADDCOLUMNS(Summmarize_ByItem,
"Sales Current Year",[Sales Current Year],
"Sales Last Year",[Sales Last Year],
"Qty Current Year",[Sales Qty Current Year],
"Qty LY",[Sales Qty Last Year],
"Current Avg Price",IF([Sales Qty Current Year]=BLANK(),BLANK(),[Sales Current Year]/[Sales Qty Current Year]),
"LY Avg Price",IF([Sales Qty Last Year]=BLANK(),BLANK(),[Sales Last Year]/[Sales Qty Last Year]),
"Qty_Diff",IF([Sales Qty Current Year]=BLANK() || [Sales Qty Last Year]=BLANK(),[Sales Current Year]-[Sales Last Year],([Sales Qty Current Year]-[Sales Qty Last Year])*([Sales Last Year]/[Sales Qty Last Year])),
"Price_Diff",IF([Sales Qty Current Year]=BLANK() || [Sales Qty Last Year]=BLANK(),0,([Sales Current Year]/[Sales Qty Current Year]-[Sales Last Year]/[Sales Qty Last Year])*[Sales Qty Current Year]),"Qty Var",1)
i would like to start using the Summarize and ADD Column formulas.
i managed to create to use the formula that will create new virtual columns for me but i dont understand how to use them
for example: i have created the below formula that create a virtual table with 8 columns ( Sales Current Year,Sales Last Year,Qty Current Year,Qty LY,Current Avg Price,LY Avg Price,Qty_Diff,Price_Diff)
now i want,for example, to present in a table the Sum of the virtual column :Price_Diff
how can i use this column?
thanks
------------------------------------------------------------------
Z-TTest Summerize = var Summmarize_ByItem= SUMMARIZE('IT-Sales Transactions','IT-Sales Transactions'[Item Num])
var CurrentAvgPrice=[Sales Current Year]/[Sales Qty Current Year]
var LastAvgPrice=[Sales Last Year]/[Sales Qty Last Year]
var QtyDiff=[Sales Qty Current Year]-[Sales Qty Last Year]
return
ADDCOLUMNS(Summmarize_ByItem,
"Sales Current Year",[Sales Current Year],
"Sales Last Year",[Sales Last Year],
"Qty Current Year",[Sales Qty Current Year],
"Qty LY",[Sales Qty Last Year],
"Current Avg Price",IF([Sales Qty Current Year]=BLANK(),BLANK(),[Sales Current Year]/[Sales Qty Current Year]),
"LY Avg Price",IF([Sales Qty Last Year]=BLANK(),BLANK(),[Sales Last Year]/[Sales Qty Last Year]),
"Qty_Diff",IF([Sales Qty Current Year]=BLANK() || [Sales Qty Last Year]=BLANK(),[Sales Current Year]-[Sales Last Year],([Sales Qty Current Year]-[Sales Qty Last Year])*([Sales Last Year]/[Sales Qty Last Year])),
"Price_Diff",IF([Sales Qty Current Year]=BLANK() || [Sales Qty Last Year]=BLANK(),0,([Sales Current Year]/[Sales Qty Current Year]-[Sales Last Year]/[Sales Qty Last Year])*[Sales Qty Current Year]),"Qty Var",1)