Forum Discussion

Steels_Cat's avatar
Steels_Cat
Icon for Helper I rankHelper I
4 years ago

Need to create calculated Column for counting values based on selected filters/values

Hello All, 
I have to create dynamic calculated column or do not know how to call it  - filter "CountFlight" - is a just Calculated column based on this measure - 

CALCULATE(COUNTROWS('table1'),FILTER('Table1','Table1'[Flight]=EARLIER('Table1','Table1'[Flight]))). The main problem is that the client wound like to create a filter based on this column but after i use the filter "Filter Service type" and the date range, for example last 6 months - CountFlights is not equal to TotalFlights (COUNT('Table1','Table1'[Flight]) on the tooltip chart

 

The logic here is that if i filtered "Scheduled" from Flights Service Type and last 6 months from this row data file should stay only the second row. The filter CountFlights has to show 1 instead of 2. CountFlight filter has to be same as TotalFlights number from the below chart. I tried to use summarized table but client wants to use drill thought, also and from summarized table I’m not able to use it 

 

 

 

3 Replies