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

Dynamic calculations using Date filters

Hi friends,

I need some guidance on how to get change metrics from below data set.

Capture.PNG

Scenario: In the data set, We store Projects (ID) with its current week's phase (Discovery, Alpha,Beta,Live and Backlog) into Database. Project phases may change each week from one to another. I want to calculate this change and show it on Dashboard as below by comparing current vs previous week. I can select any 2 weeks from data using 2 filter pane (Island table)

Expected Results

New Projects= 2

Project Moved = 2

Project Failed = 2

Definition:

New -  New projects added this week (e.g. 7 & 😎

Moved -  Projects moved from one phase to another from previous week (e.g. 1 & 5)

Failed - Projects which are in Success status in previous week but failed into current week ( e.g. 3 & 4)

I was able to calculate the New metric using below formula but facing issues while calculating Moved & Failed metrics

vPrev_Week =If(GetFieldSelection([Prev Period]))      // Filter Pane 1

vCurr_Week =If(GetFieldSelection([Current Period]))      // Filter Pane 2

New =  Count({<TIME ={"$(vPrev_Week )"} > + <TIME ={"$(vCurr_Week )"}> } Distinct ID)  - Count({<TIME={"$(vPrev_Week )"}>}Distinct ID)

Moved = ?

Failed = ?

Any pointers/help will be highly appreciated

Cheers,

Kev

2 Replies
MK9885
Master II
Master II

Can you please provide a sample XL data with expected results?

Anonymous
Not applicable
Author

shahbazkhan

Thanks for your response.

Source Data (Sample):

Capture.PNG

Expected Results:

New Projects= 2

Project Moved = 2

Project Failed = 2



Cheers,

Kev