Forum Discussion
Sum values by dynamic month
- 6 years ago
Hi Jarodp42 ,
You can use this measure and put it into a table visual together with the names: (I called my table Names btw):
Measure = VAR _groupedTable = SUMMARIZE(Names, Names[MonthYear], "SUM", SUM(Names[Values])) RETURN MAXX(_groupedTable, [SUM])Result:
You can put this measure into the Gauge target lable, but remember that it will be evaluated for the current data context. So, with your sample data, it will evaluate to 850 but not because Gaby has the highest, but because the month Sept-19 is overall the highest.
let me know if this answers your question 🙂Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Hi Jarodp42 ,
You can use this measure and put it into a table visual together with the names: (I called my table Names btw):
Measure =
VAR _groupedTable = SUMMARIZE(Names, Names[MonthYear], "SUM", SUM(Names[Values]))
RETURN
MAXX(_groupedTable, [SUM])Result:
You can put this measure into the Gauge target lable, but remember that it will be evaluated for the current data context. So, with your sample data, it will evaluate to 850 but not because Gaby has the highest, but because the month Sept-19 is overall the highest.
let me know if this answers your question 🙂
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
JarroVGIT Thank you for your response. I was having to build it in two steps but your measure allowed me to get my desired outcome in one measure! As for the Guage visual that makes sense as it wouldn't know which name to filter for. Please correct me if I am wrong, but I could throw a page filter on for names and when selecting certain names it should give me their max value by month, right? Thanks again for helping with my issue!