Forum Discussion
jenani_user
3 years agoFrequent Visitor
Total amount based on team and overall
Hi Team,
I have 3 fields Team,Name,Amount , need to calculate amount based on team and overall as showed in result1 result2 column
Thanks
Jen
jenani_user Maybe:
result1 measure = VAR __team = MAX('Table'[team]) VAR __table = FILTER(ALL('Table'),[team] = __team) VAR __result = SUMX(__table,[amount]) RETURN __result result2 measure = SUMX(ALL('Table'),[amount])
4 Replies
- Greg_DecklerCommunity Champion
jenani_user Maybe:
result1 measure = VAR __team = MAX('Table'[team]) VAR __table = FILTER(ALL('Table'),[team] = __team) VAR __result = SUMX(__table,[amount]) RETURN __result result2 measure = SUMX(ALL('Table'),[amount])- jenani_userFrequent Visitor
Thank you so much!!!!
Similarly I need to calculate amount for the month i.e MTD
Can you help with this Greg_Deckler ?
Thanks
Jen
- Greg_DecklerCommunity Champion
jenani_user I don't see dates anywhere, but here is some of the basics of date intelligence.
You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008