Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

getting total or average for a specific year

Hi,   As I have to get total and average amount for specific year, every year, kindly advise me on how to produce a DAX formula for that.    For info, currently, I'm using a formula such as this-...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous 

    Try this 

    Total=

    Calculate(sum(table[Amount]),filter(all(table),year(table[Date]) in Allselected(table[date])))

     

    Thanks & regards,
    Pravin Wattamwar
    www.linkedin.com/in/pravin-p-wattamwar

    If I resolve your problem Mark it as a solution and give kudos.