Forum Discussion
Column with the maximum value
- Anonymous1 year ago
Hi Chentefx ,
Maybe there're some filters that cauesd the wrong result of your measure.
You can try this measure:
HTX_Maximo = MAXX ( SUMMARIZE ( ALL ( 'DayWithMaxTransactions' ); 'DayWithMaxTransactions'[HProcess].[Año]; 'DayWithMaxTransactions'[HProcess].[Mes]; 'DayWithMaxTransactions'[HProcess].[Día]; DayWithMaxTransactions[TransactionCount] ); 'DayWithMaxTransactions'[TransactionCount] )The ALL function can ignore any filters applied.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
This pattern should work
Measure = MAXX(SUMMARIZE(Calendar,Calendar[year],calendar[month name],"A",[Total]),[A])
Hope this helps.
Hello good, I have followed the suggestion only that now it gives me the result of 1.
Here's the filter from the initial table:
DayWithMaxTransactions =
VAR FilteredTable =
FILTER(
'HistoryTransaction';
WEEKDAY('HistoryTransaction'[HProcess]) = WEEKDAY(TODAY())
&& 'HistoryTransaction'[Origen] <> 'HistoryTransaction'[Destino]
&& 'HistoryTransaction'[Destino] = "1"
&& 'HistoryTransaction'[HStatus] = 4
)
VAR GroupedTable =
SUMMARIZECOLUMNS (
'HistoryTransaction'[HProcess];
FilteredTable;
"TransactionCount"; COUNT('HistoryTransaction'[idHistoricoTx])
)
RETURN GroupedTable
Thus the data is grouped and filtered
Siguiendo la sugerencia del maximo
HTX_Maximo =
MAXX(
SUMMARIZE(
'DayWithMaxTransactions';
'DayWithMaxTransactions'[HProcess]. [Año];
'DayWithMaxTransactions'[HProcess]. [Mes];
'DayWithMaxTransactions'[HProcess]. [Día];
DayWithMaxTransactions[TransactionCount]
);
'DayWithMaxTransactions'[TransactionCount])
I have done it in the two ways that have been recommended to me, now I get the result of
- Ashish_Mathur1 year agoSuper User
The measure you have written is nowhere close to the one which i suggested. I am referring to the Calendar table - you are not.
- Syndicate_Admin1 year agoAdministrator
Good day my dear, apologies since I am entering the world of power bi and it is costing me a little, I do not know if it is necessary to create the calendar table, in my case I make the direct consultation, in advance I appreciate you can explain me, since I have lost myself in the solution of the problem.
- Ashish_Mathur1 year agoSuper User
It is necessary to create a Calenda table.