Forum Discussion
Time Intelligence Measures with dynamic Time Periods
Hi FN,
Any chance you can share some sample data in text form rather than as an image to save lots of key-ing in :)
Hi Phil_Seamark,
here is some sample data for you. Thank you so much already. I really appreciate it.
| Customer | Contract Type | Total Price | Contract Start Date | Contract End Date | Address 1: Country (Customer) |
| Customer 1 | Update Contract | 1.687,44 | 8.1.2005 | 7.31.2017 | Austria |
| Customer 2 | Update Contract | 2.595,00 | 6.1.2003 | 5.31.2017 | United States |
| Customer 3 | Support Contract | 6.923,04 | 3.1.2016 | 9.30.2020 | Germany |
| Customer 4 | Update Contract | 1.119,96 | 11.1.2006 | 10.31.2017 | Germany |
| Customer 5 | Support Contract | 4.560,00 | 7.30.2010 | 8.31.2014 | United States |
| Customer 6 | Cloud Agreement | 1.932,00 | 10.1.2015 | 9.30.2016 | Spain |
| Customer 7 | Support Contract | 7.856,28 | 4.1.2015 | 3.31.2018 | United Kingdom |
| Customer 8 | Update Contract | 798,72 | 1.1.2001 | 12.31.2005 | Switzerland |
| Customer 9 | Cloud Agreement | 1.890,00 | 12.1.2016 | 11.30.2017 | United States |
| Customer 10 | Update Contract | 309,00 | 1.1.2011 | 12.31.2014 | Isle Of Man |
| Customer 11 | Cloud Agreement | 343,00 | 8.15.2014 | 3.31.2017 | Germany |
| Customer 12 | Update Contract | 6.319,44 | 5.1.2002 | 4.30.2017 | Germany |
| Customer 13 | Update Contract | 4.535,16 | 10.1.2006 | 9.30.2017 | Germany |
| Customer 14 | Cloud Agreement | 4.116,00 | 10.1.2015 | 9.30.2017 | Germany |
| Customer 15 | Support Contract | 6.996,00 | 7.7.2011 | 8.31.2017 | United States |
| Customer 16 | Support Contract | 193,80 | 1.1.2011 | 12.31.2017 | Switzerland |
| Customer 17 | Update Contract | 232,92 | 8.1.2011 | 7.31.2017 | Germany |
| Customer 18 | Support Contract | 329,76 | 2.1.2008 | 1.31.2018 | Germany |
| Customer 19 | Support Contract | 1.644,00 | 9.1.2007 | 8.31.2008 | United States |
| Customer 20 | Support Contract | 312,00 | 7.17.2009 | 7.31.2016 | United States |
| Customer 21 | Support Contract | 2.814,00 | 11.26.2014 | 11.30.2016 | Mexico |
| Customer 22 | Support Contract | 744,00 | 3.16.2011 | 3.31.2012 | Mexico |
| Customer 23 | Update Contract | 1.610,64 | 5.1.2002 | 4.30.2013 | Germany |
| Customer 24 | Update Contract | 1.545,24 | 12.1.2011 | 11.30.2017 | Germany |
| Customer 25 | Update Contract | 5.355,00 | 7.30.2010 | 8.31.2017 | United States |
| Customer 26 | Support Contract | 200,00 | 2.18.1998 | 2.18.2002 | United States |
| Customer 27 | Update Contract | 1.771,20 | 3.1.2005 | 12.31.2017 | Germany |
| Customer 28 | Support Contract | 4.902,00 | 12.31.2008 | 10.31.2017 | United States |
| Customer 29 | Update Contract | 1.279,56 | 6.1.2015 | 12.31.2017 | Austria |
| Customer 30 | Support Contract | 312,00 | 9.30.2008 | 9.30.2014 | United States |
| Customer 31 | Support Contract | 2.719,80 | 1.1.1980 | 2.28.2018 | United States |
| Customer 32 | Support Contract | 4.999,92 | 12.10.2003 | 12.31.2017 | United States |
| Customer 33 | Support Contract | 312,00 | 6.24.2013 | 6.30.2014 | United States |
| Customer 34 | Support Contract | 32.325,00 | 9.1.2015 | 8.31.2020 | United States |
| Customer 35 | Cloud Agreement | 4.116,00 | 6.1.2016 | 5.31.2017 | Germany |
| Customer 36 | Support Contract | 8.397,00 | 10.19.2011 | 6.30.2017 | Brazil |
| Customer 37 | Update Contract | 1.437,84 | 5.1.2015 | 4.30.2017 | Switzerland |
| Customer 38 | Update Contract | 6.624,24 | 9.1.2007 | 8.31.2017 | Germany |
| Customer 39 | Support Contract | 3.153,12 | 11.1.2010 | 12.31.2017 | Germany |
- Phil_Seamark9 years agoMicrosoft Employee
Hi FN
There are a few moving parts to this one so rather than type it up, here is a PBIX file for you to have a play with
I think it is close, but once we have applied any tweaks, we can post more detail in here for future searches.
Feel free to ask any questions you have :)
- FN9 years agoRegular Visitor
Hi Phil_Seamark;
it took me a while to try to apply this format to the whole data set from our company.
Your solution looks really good, it is definitely going in the right direction. Thank you so much for your help already!
I only do not understand, how you created this "Processed Data" Table.
I can see that you typed in the following formula there, but I don't know where to type this formula in, when I create a new Power BI sheet with the whole data from the company. Did you do "Merge Queries" or did you start the new table with "Enter new Data"? Or is there a completely different way you did this? Once I know how to create this Processed Data Tab, I think it should be working.Processed Data = ADDCOLUMNS(
FILTER(
CROSSJOIN('Raw Data';Quarters);
(
-- Started before start of Quarter and was active during the quarter
[Contract Start Date]<=[QuarterStart] &&
[Contract End Date] > [QuarterStart]
)
||
(
-- Started During the Quarter
[Contract Start Date]<=[QuarterEnd] &&
[Contract Start Date]>=[QuarterStart]
)
) ;
"Contracts Started" ; if([Contract Start Date]<[QuarterEnd] && [Contract Start Date]>=[QuarterStart];1;0);
"Contracts Ended" ; if([Contract End Date]<[QuarterEnd] && [Contract End Date]>=[QuarterStart];1;0)
)
I am really looking forward hearing from you.
Cheers,
Florian