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:   PROJECT STAFF COSTS  DIRECT COST...
  • tringuyenminh92's avatar
    tringuyenminh92
    9 years ago

    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