Day 1
Day 1
[Date])
Month1 = month(Orders[OrderDate].[Date])
Quater1 = QUARTER(Orders[OrderDate].[Date])
Year1 = year(Orders[OrderDate].[Date])
Day2 = Orders[OrderDate].[Day]
Quater2 = Orders[OrderDate].[Quarter]
Year2 = Orders[OrderDate].[Year]
Date1 = Orders[OrderDate].[Date]
Month2 = Orders[OrderDate].[Month]
WeekNum = Weeknum(orders[OrderDate])
Weekday1 = WEEKDAY(Orders[OrderDate].[Date])
Weekday1 = WEEKDAY(Orders[OrderDate].[Date] ,2)
Today = Today()
Now = Now()
Difference = Datediff(Date_Data[OrderDate].[Date],Date_Data[ShipDate].[Date],Day)
MyAge = DATEDIFF(DATE(1992,04,05),TODAY(),YEAR)
Add5Days = DATEADD(Orders[OrderDate].[Date],5,DAY)
StartOfMonth = STARTOFMONTH(Date_Data[OrderDate].[Date])
Endofmonth = ENDOFMONTH(Date_Data[OrderDate].[Date])
EndofNextMonth = EoMonth(Date_Data[OrderDate].[Date],1)
EndofNextMonth = EoMonth(Date_Data[OrderDate].[Date],-1)
UpperShipMode = UPPER(Sheet1[Ship Mode])
LowerCustName = Lower(sheet1[Customer Name])
Left1 = LEFT(Sheet1[Product ID],3)
Right1 = RIGHT(Sheet1[Product ID],8)
Mid = Mid(Sheet1[Product ID],5,2)
Trims = Trim(Tax2Data[Ship Mode])
LengthofCust = len(Tax2Data[Customer Name])
CombineTxt1 = Concatenate( Tax2Data[Category],Tax2Data[Sub-Category])
CombineText2 = Tax2Data[Category] & Tax2Data[Sub-Category] & Tax2Data[Product ID]
CombineText2 = Tax2Data[Category] & "-" & Tax2Data[Sub-Category] & "-" & Tax2Data[Product
ID]
PositionOfA = Search("a", Tax2Data[Ship Mode],1,0)
NewClassName = SUBSTITUTE( Tax2Data[Ship Mode],"Class","Mode")
ProfitStatus = If(Logical[Profit]>0,"Profit","Loss")
OutPut1 = IFERROR(LogiCal[Quantity]/LogiCal[Discount],0)
Output1 = And(Logical2Data[Maths]>80 , Logical2Data[Physics]>80)
Output1 = if(And(Logical2Data[Maths]>80 , Logical2Data[Physics]>80),"Excellent","Ok")
Output2 = if( OR(Logical2Data[Maths]>80 , Logical2Data[Physics]>80),"very Good","Ok")
TotalSales_C = sum(Orders[Sales]
(Row Wise Calculation)
TotalSales_M = sum(Orders[Sales])
(Column Wise Calculation)
TechProfit = CALCULATE(sum(Orders[Profit]),Orders[Category]="Technology")
Corporateprofit = calculate(sum(orders[Profit]),orders[Segment]="Corporate")
2017CorporateProfit = calculate(sum(orders[Profit]),Year(orders[Order Date])=2017
,orders[Segment]="Corporate")
CountofTechnology = Calculate(count(orders[Profit]),Orders[Category]="Technology")
CountofTechnology =
Calculate(count(orders[Profit]),Orders[Category]="Technology",Year(orders[order
Date])=2017)
AvgTechProfit = calculate(Average(Orders[Profit]),Orders[Category]="Technology")
AvgTechProfit =
calculate(Average(Orders[Profit]),Orders[Category]="Technology",year(Orders[Order
Date])=2017)
Difference2 = sum(Orders[Profit])-[Previousmonthprofit1]
Profitdiff = ((sum(Orders[Profit])-[Previousmonthprofit1])/([Previousmonthprofit1])*100)
difference3 = sum(Orders[Profit])-[Sameperiodlastyear]
difference3 = sum(Orders[Profit])-[Sameperiodlastyear]
Quantity2 = sum(Data[Quantity])
SummaryTable = SUMMARIZE(financials,financials[Countrycode],"Total
Sale",sum(financials[ Sales]))
SummaryTable = SUMMARIZE(financials,financials[Countrycode],financials[Product],"Total
Sale",sum(financials[ Sales]))
Summarytable1 =
SUMMARIZECOLUMNS(financials[Product],FILTER(financials,financials[Country]="Canada"),"Total
Sale",sum(financials[ Sales]))
Remove_filter_measure =
calculate(sum(financials[ Sales]),REMOVEFILTERS(financials[Country]))
Allexceptsale =
CALCULATE(sum(financials[ Sales]),ALLEXCEPT(financials,financials[Country]))
Remove all other and retain filter contex for country
AllSelectedSale = CALCULATE(sum(financials[ Sales]),ALLSELECTED(financials[Segment]))
Clear filter in segment but slicer filter will work.
TotalSale = CALCULATE(sum(financials[ Sales]))
Alltotalsale = CALCULATE(sum(financials[ Sales]),all())
Clear filter context
AllSaleproduct = CALCULATE(sum(financials[ Sales]),all(financials[Segment]))
Countrycode =
SWITCH(financials[Country],"Canada","CA","France","FA","Germany","GE","Mexico","ME","US")