Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31142

link the time slicer to a measure (calculation)

$
0
0

Hi All,

 

I'd like to have the time slicer dynamically recalculate a measure from the selected start date. The measure creates an indexed time series of percentage returns rebased to 100 at the starting point. This is the measure that I use:

 

FundReturnTmp =
CALCULATE ( 
      IF ( COUNTROWS ( Global_AssetType ) = 1 ; 100 ; PRODUCT ( Global_AssetType[FundReturn] ) * 100 ) ;
      FILTER ( ALL ( Global_AssetType );  Global_AssetType[Date] <= MAX ( Global_AssetType[Date] ) ) ;
      VALUES ( Global_AssetType[OrderKey] )
)

 

Below two screenshots of the chart. The first is with the time slicer set at the starting point of the data and the second is with the time slicer set somewhere in the middle of the series. Aim is to have the second chart dynamically rebased to 100 at the new starting point. Thank you very much for any help.

 

Screenshot 1.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Screenshot 2.jpg


Viewing all articles
Browse latest Browse all 31142

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>