Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
as3znaus
Helper I
Helper I

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

1 ACCEPTED SOLUTION

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)

 

Screenshot 2016-12-15 21.00.19.png

 

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

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

View solution in original post

7 REPLIES 7
tringuyenminh92
Memorable Member
Memorable Member

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")

2016-12-15_16h27_38.png

 

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

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!

 

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.

Ok, let me explain myself better 🙂

 

Imagine that these values are the cost estimations for the project 1143.

 

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

 

So, the project started on January (please notice that my dates are DD/MM/YYYY) and I have an estimation for each month of the year. Now, I want yo create a chart with all the estimations and freeze it, something like this:

 

Captura.JPG

 

Ok so imagine now we are in March and I have reports 1,2 and 3 ready (one for each month). I want the above chart to have a bar "in a different color" on January, February and March representing the real cost that I get from the report.

 

It's kind of complicate, so if you need further details I can create an example file.

 

Thanks for your time!

 

 

 

 

Captura.JPG

As you can see in these charts every month I replace the estimations with actual data, so I need to "freeze" my initial estimations to be able to compare the values (actual vs. estimations).

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)

 

Screenshot 2016-12-15 21.00.19.png

 

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

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

@tringuyenminh92 

 

It worked!

 

I've changed it a little bit, just to avoid using filters but it definitely worked. 

 

Thank you for your time.

 

🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.