[go: up one dir, main page]

0% found this document useful (0 votes)
42 views1 page

DAX1

The document outlines various data manipulation techniques using DAX for analyzing sales data from an Orders table. It includes operations such as summarizing total sales, grouping by region and sub-category, filtering specific data, and adding calculated columns. Additionally, it defines a data table for categorizing sales ranges.

Uploaded by

psaritha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views1 page

DAX1

The document outlines various data manipulation techniques using DAX for analyzing sales data from an Orders table. It includes operations such as summarizing total sales, grouping by region and sub-category, filtering specific data, and adding calculated columns. Additionally, it defines a data table for categorizing sales ranges.

Uploaded by

psaritha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

SummarizeTable = SUMMARIZE(Orders,Orders[Sub-Category],"Total

Sales",SUM(Orders[Sales]))

GroupByTable = GROUPBY(
GROUPBY(Orders,Orders[Region],Orders[Sub-Category],
"Total Sales",SUMX(CURRENTGROUP(),Orders[Sales])),
Orders[Region],"Minimum Sales",MINX(CURRENTGROUP(),[Total Sales]))

GBFilterTable = FILTER(GROUPBY(Orders,Orders[Region],Orders[Sub-Category],
"Total Sales",sumx(CURRENTGROUP(),Orders[Sales])),Orders[Region]="East" &&
Orders[Sub-Category]="Chairs")

G1 = GROUPBY(Orders,Orders[Region],Orders[Sub-Category],
"Total Sales",SUMX(CURRENTGROUP(),Orders[Sales]))

GroupByTable =
GROUPBY(Orders,Orders[Sub-Category],
"Total Sales",SUMX(CURRENTGROUP(),Orders[Sales]),
"Minimum Sales",minx(CURRENTGROUP(),Orders[Sales]),
"Maximum Sales",MAXX(CURRENTGROUP(),Orders[Sales]),
"Average Sales",AVERAGEX(CURRENTGROUP(),Orders[Sales]),
"No of Sales",COUNTX(CURRENTGROUP(),Orders[Sales]))

AddcolumnsTable =
ADDCOLUMNS(Orders,"Unit Price",Orders[Sales]/Orders[Quantity])

SelectColumnTable = SELECTCOLUMNS(Orders,"Region",Orders[Region],"Customer
Name",Orders[Customer Name],"Sales",Orders[Sales])

SelectColumnTable =
SELECTCOLUMNS(Filter(Orders,Orders[Sales]>100),"Region",Orders[Region],"Customer
Name",Orders[Customer Name],"Sales",Orders[Sales])

Datatable = DATATABLE(
"Sales Range",STRING,
"Minimum",INTEGER,
"Maximum",INTEGER,
{
{"Low",0,10000},
{"Medium",10001,50000},
{"High",50001,100000}
}
)

You might also like