Forum Discussion
Anonymous
1 year agoNot applicable
Counts in Specific conditions
dear All, i need Dax Formula to add new column in table with following condition number of days in same month included item in store, example : item 1111 in Store A repeated in 1-2-3 Oct so repeated...
Greg_Deckler
1 year agoCommunity Champion
Anonymous Try:
Column =
VAR __Item = [Item]
VAR __MonthYear = YEAR( 'Table'[Date] ) * 100 + MONTH( 'Table'[Date] )
VAR __Table = ADDCOLUMNS( 'Table', "__MonthYear", YEAR( [Date] ) * 100 + MONTH( [Date] ) )
VAR __Table1 = SUMMARIZE( FILTER( __Table, [__MonthYear] = [__MonthYear] && [Item] = __Item ), [Item], [Date] )
VAR __Result = COUNTROWS( __Table1 )
RETURN
__ResultAnonymous
1 year agoNot applicable
dear , its not working then you didnt mention store becuase it is related to date and store and item