Forum Discussion
Maximum of Count
- 7 years ago
Hi Anonymous,
One sample for your reference. Here we can create two measures as below to get the result as we need.
MAX = CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[DATE]),VALUES(Table1[ITEM]))
MAXX = MAXX(Table1,[MAX])
For more details, please check the pbix as attached.
Regards,
Frank
- 7 years ago
Hi Anonymous,
To create another new measure and make the table visual filterd by the measure.
Measure = var result = MAXX(ALLEXCEPT(Table1,Table1[DATE]),[MAXX]) return IF([MAX]=result,1,0)
Regards,
Frank
Anonymous
Do you want to create a measure or column?
If you want to create a measure
maxcount = MAX(Table5[count])
if you want to create a column
maxcount2 = MAXX(FILTER(Table5,'Table5'[date]=EARLIER(Table5[date])),Table5[count])
1
Hello Ryan,
Thank you for your time to reply to my issue. I would like to know how you created the "count" column? It looks like a summarized table ,compared to my Count column which has only "1" in all the row values.
- ryan_mayu7 years ago
Super User
Anonymous
I just create a new column. I also attached the DAX. You can have a try on your end. Thnaks
maxcount2 = MAXX(FILTER(Table5,'Table5'[date]=EARLIER(Table5[date])),Table5[count])