Forum Discussion
Daily max calculation, by months
- 9 years ago
Hi blazko,
In the given thread, the week column and Amount are in one table. While based on your DAX formula, your data and value in different table. You want to create a measure or calculated column? What do your resource table look like?
Based on my understanding, you'd better get the amount in 'relacje_data' table using the formula:
amount=SUM(RELATED(tabela_linie[amount]))
Then create a measure use the formula bolow.result=MAXX(SUMMARIZE(relacje_data,relacje_data[Date].[day]),"Amount",SUM(relacje_data[amount])),[Amount])
Finally, you can create a table visual, add the relacje_data[Date] and [result] as value fields.
Best Regards,
Angelia
Hi blazko,
In the given thread, the week column and Amount are in one table. While based on your DAX formula, your data and value in different table. You want to create a measure or calculated column? What do your resource table look like?
Based on my understanding, you'd better get the amount in 'relacje_data' table using the formula:
amount=SUM(RELATED(tabela_linie[amount]))
Then create a measure use the formula bolow.
result=MAXX(SUMMARIZE(relacje_data,relacje_data[Date].[day]),"Amount",SUM(relacje_data[amount])),[Amount])
Finally, you can create a table visual, add the relacje_data[Date] and [result] as value fields.
Best Regards,
Angelia
Hi Angelia
I think you have a ) in the wrong place here - after .[day]. Should be:
result=MAXX(SUMMARIZE(relacje_data,relacje_data[Date].[day],"Amount",SUM(relacje_data[amount])),[Amount])
Regards
Julian