Forum Discussion
JoergSch
4 years agoFrequent Visitor
Generate Date table dynamically based on What-If parameter
Hi, I am trying to generate a date table dynamical based on a provided interval and history which I select via a What-If-Parameter. What-If-Parameter "Threshold History" provides the history ...
- 4 years ago
JoergSch , You can not use slicer value in a calculated table.
Such tables can be created only as var table in a measure
meausre =
var _tab = GENERATESERIES (
MAXX ( ALL('Log'),'Log'[CreatedOn] ) - TIME(0,'Threshold History'[Threshold History Value],0) ,
MAXX ( ALL('Log'),'Log'[CreatedOn] ) ,
TIME ( 0,'Threshold Interval'[Threshold Interval Value], 0)
)
amitchandak
4 years agoSuper User
JoergSch , You can not use slicer value in a calculated table.
Such tables can be created only as var table in a measure
meausre =
var _tab = GENERATESERIES (
MAXX ( ALL('Log'),'Log'[CreatedOn] ) - TIME(0,'Threshold History'[Threshold History Value],0) ,
MAXX ( ALL('Log'),'Log'[CreatedOn] ) ,
TIME ( 0,'Threshold Interval'[Threshold Interval Value], 0)
)