Forum Discussion
3s
7 months agoRegular Visitor
No results
Hi, I am new in here and in Dax. I couln't find a similar question, so hopefully someone can help. I am trying to achieve the same as Excel: countif(B:B;B2;A:A;D2). This is what I am doing: Count...
- 7 months ago
Hi 3s
Have tried this in desktop with your sample data. Please let me know the exact requirement/logic if it does not work.
- 7 months ago
Hi,
These calculated column formulas work
=CALCULATE(COUNTROWS(Data),FILTER(Data,Data[member]=EARLIER(Data[member])&&Data[year]=EARLIER(Data[year+1])))+0=CALCULATE(COUNTROWS(Data),FILTER(Data,Data[member]=EARLIER(Data[member])&&Data[year]=EARLIER(Data[year-1])))+0Hope this helps.
ryan_mayu
Super User
7 months agomaybe you can try this to create a calculated column.
Count =
CALCULATE(
COUNTROWS('Table'),
FILTER(
'Table',
'Table'[ID] = EARLIER('Table'[ID])
&& 'Table'[Year] = EARLIER('Table'[Year])
)
)
if this does not work, could you pls provide some sample data and expected output?
could you pls provide some sample data and expected output?