Forum Discussion

Kathir's avatar
Kathir
Frequent Visitor
3 years ago
Solved

Dax Help

hi ,

 

How to get the max number by category as shown below? Thanks 

 

IDWeekTotal VideosMax Videos
1133
2133
1244
2244
1322
2322
1455
2445

 

 

  • Hi Kathir ,

     

    Please create a new column:

    Column = CALCULATE(MAX('Table'[Total Videos]),FILTER('Table','Table'[Week] = EARLIER('Table'[Week])))

     

    Best regards,

    Yadong Fang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Tanushree_Kapse's avatar
    Tanushree_Kapse
    Impactful Individual

    Hi Kathir ,

     

     

    You can create the below column with the DAX:

    Max Videos = CALCULATE(MAX('Table'[Total Videos]),GROUPBY('Table','Table'[Total Videos]),'Table'[ID])
     
     
    Mark this as a solution, if I answered your question. Kudos are always apreciated.
    Thanks
  • v-yadongf-msft's avatar
    v-yadongf-msft
    Community Support

    Hi Kathir ,

     

    Please create a new column:

    Column = CALCULATE(MAX('Table'[Total Videos]),FILTER('Table','Table'[Week] = EARLIER('Table'[Week])))

     

    Best regards,

    Yadong Fang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.