The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello Team,
Can you help me to get column formula for occurrence as mentioned in attachment.
PBIX: Sample file
Excel Formula: =MAX(IF(B2:B6=B2,ROW(B2:B6)-ROW(INDEX(B2:B6,1,1))+1))
Regards,
Chandrashekar B
Solved! Go to Solution.
Hello,
got the answer.
Occurences = COUNTROWS([Number], FILTER( 'Tablename', [Month] = EARLIER[Month]))
OR
Occurences = COUNTROWS( FILTER( 'Tablename', [Month] = EARLIER[Month]))
Hello,
am getting wrong count and first one is not working. I should get same result as [Expected output].
Regards,
Chandrashekar B
TRY this,
Occurences = COUNTROWS([Number],ALLEXCEPTED( 'Tablename', [Month] = EARLIER[Month]))
Hello Devanshi,
am getting error while using column formula. Please find sample data.
PBIX: Sample report
Regards,
Chandrashekar B
access to sample is denied
Occurences =
var m = SELECTEDVALUE(Sheet1[Month])
var n = SELECTEDVALUE(Sheet1[Number])
return countrows(Filter(ALLSELECTED(Sheet1),Sheet1[Number]=n && Sheet1[Month]>=m))
Hello, Can I get column formula instead of DAX.
Regards,
Chandrashekar B
Occurences = countrows(Filter(ALL(Sheet1),Sheet1[Number]=[Number] && Sheet1[Month]>=[Month]))
Hello,
am getting same numbers.
Regards,
Chandrashekar B
Hello,
Can anyone help on column formula.
Regards,
Chandrashekar B
Hello,
got the answer.
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |