Forum Discussion

shareezsaleem's avatar
shareezsaleem
Helper III
4 years ago
Solved

Convert data in to dynamic summarized data

Hi All,   Assume, I have table with below like below in Power BI. DateParticulars Value Year 1-Jan-2021 Beginning_# Contracts 982 2021 1-Jan-2021 Expired_# Contracts -97 2021 1-Jan...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, shareezsaleem ;

    Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? In addition, you also could create a measure as follow:

    newvalue = 
    SWITCH(MAX('Table'[Attribute]),
                "Beginning_# Contracts",CALCULATE(SUM('Table'[Value]),FILTER('Table',EOMONTH([Period],0)=EOMONTH(MIN('Date'[Period]),0))),
                "Total Active_# Contracts",CALCULATE(SUM('Table'[Value]),FILTER('Table',EOMONTH([Period],0)=EOMONTH(MAX('Date'[Period]),0)))
                ,SUM([Value]))

    The final output is shown below:


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.