Forum Discussion
Group and Subgroup MAXX function calculate table
- Anonymous3 years ago
Hi GyMpX ,
We can create measures in new table [Filtre Date].
Nb1 = SUM(Fichiers[nombre])MAX NB Zone1 = var _table=SUMMARIZE(ALLSelected('Fichiers'),Fichiers[zone],'Fichiers'[Produit],"Nb",[Nb1]) return MAXX(FILTER(_table,[zone]=MAX('Fichiers'[zone])),[Nb])Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi GyMpX ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table.
Filtre Date =
var _table=
SUMMARIZE('Fichiers',Fichiers[zone],Fichiers[Produit],"Nb",SUM(Fichiers[nombre]))
return
ADDCOLUMNS(_table,"MAX NB Zone",MAXX(FILTER(_table,[zone]=EARLIER([zone])),[Nb]))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- GyMpX3 years agoFrequent Visitor
Thank you a lot for your answer!
But i have always a problem if i want to add a filter on the date (which is present in my first table). I prefer create a measure. and I think A little thing miss in my request.
- Anonymous3 years agoNot applicable
Hi GyMpX ,
We can create measures in new table [Filtre Date].
Nb1 = SUM(Fichiers[nombre])MAX NB Zone1 = var _table=SUMMARIZE(ALLSelected('Fichiers'),Fichiers[zone],'Fichiers'[Produit],"Nb",[Nb1]) return MAXX(FILTER(_table,[zone]=MAX('Fichiers'[zone])),[Nb])Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.