Date filter reference in a calculated field

hamsy

Is there a way to reference the date range defined in the date filter?

Let's say I assign a date filter 2017-05-01 till 2017-05-31. Then I create a calculated field which highly depends on the range. For example:

ELSEIF [min_date] >= Range Start Date and [min_date] <= Range End Date THEN 1

I want the calculated field adjust depending on the date filter set up.

Alex Blakemore

You can't access the filter settings.

You can instead define one or more parameters, say a [Start Date] and [End Date] pair, or a [Start Date] and [Number of Days]. Parameters are visible from calculated fields.

If you want to use the parameters to control filtering, you'll have to define a calculated field to place on the filter shelf -- something like:

[Date] >= [Start Date] and [Date] <= date_add('day', [Start Date], [Number of Days])

This approach has a couple of advantages in return for the slight amount of extra work.

  • The parameters are visible to calculated fields so you can use them as desired.
  • Parameters are scoped to the workbook, not tied to a data source. So they are visible to all the data sources used by the workbook. This means you can use parameters to control filter settings and other calculations in many data sources at once.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Calculated Field based on an Relation Aggregate with Filter Conditions in Tableau

分類Dev

QueryDSL Order by calculated field

分類Dev

Adding a "calculated field" in bigquery

分類Dev

How to filter data using min(date_field) - postgres

分類Dev

SSRS : calculated field based on other field and condition

分類Dev

Reference alias (calculated in SELECT) in WHERE clause

分類Dev

Calculated column reference in DB2

分類Dev

How to use DateDiff in calculated field in access

分類Dev

MapStruct add a new calculated field to the dto

分類Dev

Tableau calculated field summing up the values

分類Dev

Calculated field doesn't seem to be grouping correctly

分類Dev

Tableau Calculated Field COUNTD Single Value

分類Dev

Calculated field not updating until edited in UI

分類Dev

Django Model field calculated from other fields

分類Dev

Get calculated date from moment object react

分類Dev

Adding a calculated date column to a MySQL dataset

分類Dev

How to filter last one year custom posts by comparing acf custom field date value

分類Dev

Equivalent of date --reference in Solaris

分類Dev

awk filter columns with calculated values and number range | updated

分類Dev

Regular Expresion in Tableau returns only Null's in Calculated Field

分類Dev

Active Record Validations: Uniqueness of a calculated field while inserting it

分類Dev

Filemaker Getting Record ID from Related Value in Calculated Repeating Field

分類Dev

creating a calculated field in excel pivot table based on an item in a column

分類Dev

AngularJS - how to sync result of calculated input field to a scope variable

分類Dev

Conditional date filter

分類Dev

How to filter string date?

分類Dev

mysql date and time filter

分類Dev

Date Input Field with Polymer?

分類Dev

Count aesthetics differently calculated for R's Date and POSIXct

Related 関連記事

  1. 1

    Calculated Field based on an Relation Aggregate with Filter Conditions in Tableau

  2. 2

    QueryDSL Order by calculated field

  3. 3

    Adding a "calculated field" in bigquery

  4. 4

    How to filter data using min(date_field) - postgres

  5. 5

    SSRS : calculated field based on other field and condition

  6. 6

    Reference alias (calculated in SELECT) in WHERE clause

  7. 7

    Calculated column reference in DB2

  8. 8

    How to use DateDiff in calculated field in access

  9. 9

    MapStruct add a new calculated field to the dto

  10. 10

    Tableau calculated field summing up the values

  11. 11

    Calculated field doesn't seem to be grouping correctly

  12. 12

    Tableau Calculated Field COUNTD Single Value

  13. 13

    Calculated field not updating until edited in UI

  14. 14

    Django Model field calculated from other fields

  15. 15

    Get calculated date from moment object react

  16. 16

    Adding a calculated date column to a MySQL dataset

  17. 17

    How to filter last one year custom posts by comparing acf custom field date value

  18. 18

    Equivalent of date --reference in Solaris

  19. 19

    awk filter columns with calculated values and number range | updated

  20. 20

    Regular Expresion in Tableau returns only Null's in Calculated Field

  21. 21

    Active Record Validations: Uniqueness of a calculated field while inserting it

  22. 22

    Filemaker Getting Record ID from Related Value in Calculated Repeating Field

  23. 23

    creating a calculated field in excel pivot table based on an item in a column

  24. 24

    AngularJS - how to sync result of calculated input field to a scope variable

  25. 25

    Conditional date filter

  26. 26

    How to filter string date?

  27. 27

    mysql date and time filter

  28. 28

    Date Input Field with Polymer?

  29. 29

    Count aesthetics differently calculated for R's Date and POSIXct

ホットタグ

アーカイブ