Forum Discussion

as3znaus's avatar
as3znaus
Helper I
9 years ago
Solved

Advanced Filtering (Real vs. Estimation)

Hi!

 

I want to create a table to organize my company's costs, but the "data base" structure is driving me crazy..

 

As an example, I have the following:

 

PROJECTSTAFF COSTS DIRECT COSTSDATEREPORT
1143567801/01/20171
1143564501/02/20171
1143458501/03/20171
1143525401/04/20171
1143785401/05/20171
1143451201/06/20171
1143653201/07/20171
1143658401/08/20171
1143545401/09/20171
1143685601/10/20171
1143895401/11/20171
1143788501/12/20171
1143567801/01/20172
1143785401/02/20172
1143458501/03/20172
1143525401/04/20172
1143785401/05/20172
1143451201/06/20172
1143653201/07/20172
1143658401/08/20172
1143545401/09/20172
1143685601/10/20172
1143895401/11/20172
1143788501/12/20172

 

 

As you can see, I have monthly reports with costs of the entire year, the bold numbers are real costs and the rest are estimations.

 

I want to create a table or a chart that represent the diference between estimations and real costs of the project, in order to measure the differences between theses values.

 

I have try to add new columns, filtering by both "DATE" and "REPORT" but I get a lot of columns in my queries and it's hard to work with this files.

 

Hope someone can give me a hand!

 

Thanks

  • Hi as3znaus,

     

    Sorry for late response, i just finished dinner after work ^_^ I think i got your point now, it's planning and actual timeline. 

    So i will create Act/Est column with a little changes: 

    Act/Est = if(YEAR(TODAY()) <> Data[DATE].[Year],BLANK(),if(Data[REPORT]=0,"Estimado",if(MONTH(TODAY())=Data[REPORT] && Data[DATE].[MonthNo]<=Data[REPORT], "Real",if(MONTH(TODAY())=Data[REPORT],"Estimado",BLANK()) )) )
    • There is condition with year, cause i think you will use this report for years in future.
    • Report = 0 ( 12 rows estimation of this project)
    • There is comparison with month(today()), cause i understand that this statistic will be changed every months
    • Actual & Estimate: 
      1. Actual: rows that belongs this year and [Report] = current month and MonthNo <= [Report] (to get actual rows of this reporting time)
      2. Estimate: the rest of rows that belongs to this reporting time [Report] 
    • Another rows will be blank for filter purpose (i used filters in Visual level filter as picture)

     

     

     Sample: https://www.dropbox.com/s/9qzj8zhaov4ymro/Act_est.pbix?dl=0

    data: https://www.dropbox.com/s/sqxzr6a76oz2j0u/Planning.xlsx?dl=0

7 Replies

  • Hi as3znaus,

     

    As my understand, the Real data are rows that has Day of date <= Report value of that row ? So that, please check my sample:

     

    Create new Calculated column as:

    Act/Est = IF( Planning[DATE].[Day] <= Planning[REPORT] ,"Actual","Estimate")

     

    In case you need any further analysis, please let me know.

     

    If this works for you please accept it as solution and also like to give KUDOS.

    Best regards
    Tri Nguyen

    • as3znaus's avatar
      as3znaus
      Helper I

      Hi tringuyenminh92,

       

      I really appreciate your quick respond.

       

      It works well, but I would like to maintain the estimations and put the real cost side-by-side.

       

      ¿any idea?...I guess I should consider the first month of the project as an estimation and freeze these values. And then use your Act/Est to compare.

       

      Thanks!

       

      • tringuyenminh92's avatar
        tringuyenminh92
        Memorable Member

        Hi as3znaus,

         

        it's good to hear that. What should i understand the meaning of "put the real cost side-by-side" and "consider the first month of the project as an estimation".

        If you have any further requirements, just show me your expectation in pictures and I could propose possible approaches.