Forum Discussion
Filtering in a historized table
- 6 years ago
Hi Bluefire,
You could drag the column "Valid From4" into slicer to filter your date. Or you can create a date table and use a measure to achieve your purpose.
The details are as follows:
Firstly, you can create a Calendar table which contains all continued date :
- Click New table in Modeling Tab
- Create a date table as below:
Date = CALENDAR(MIN('Table'[Valid From4]),MAX('Table'[Valid To5]))- Use a Slicer, you may choose list, because it is convenient to select a specific values
- Find New Measure on Home Tab:
Create a Measure like below:
Measure = var selectedvalue = SELECTEDVALUE( 'Date'[Date]) var a = CALCULATE(MAX('Date'[Date]),FILTER('Date',selectedvalue >= MAX('Table'[Valid From4]) && selectedvalue < MAX('Table'[Valid To5]))) return IF(ISFILTERED('Date'[Date]),a)-
Add the Measure into the table value. If the date is between From4&To5, it will appear in Measure Column, when you select a date in Slicer.
Hi Bluefire,
You could drag the column "Valid From4" into slicer to filter your date. Or you can create a date table and use a measure to achieve your purpose.
The details are as follows:
Firstly, you can create a Calendar table which contains all continued date :
- Click New table in Modeling Tab
- Create a date table as below:
Date = CALENDAR(MIN('Table'[Valid From4]),MAX('Table'[Valid To5]))
- Use a Slicer, you may choose list, because it is convenient to select a specific values
- Find New Measure on Home Tab:
Create a Measure like below:
Measure =
var selectedvalue = SELECTEDVALUE( 'Date'[Date])
var a = CALCULATE(MAX('Date'[Date]),FILTER('Date',selectedvalue >= MAX('Table'[Valid From4]) && selectedvalue < MAX('Table'[Valid To5])))
return
IF(ISFILTERED('Date'[Date]),a)
-
Add the Measure into the table value. If the date is between From4&To5, it will appear in Measure Column, when you select a date in Slicer.
- Bluefire6 years agoRegular Visitor
Thank you guys some much for your suggestions.
I was able to create the visual for one Table. Is it somehow possible to youse a measure as a global filter that it effects all visuals on the same page? Else i would have to include this measure in every visualisation and i dont think that makes much sense.
Kind Regards
Marc