title: PowerBI Desktop Custom Visual - Storage Problem
body: <p>i developed an custom filter for iso calender weeks for my company in PowerBI.</p>
  <p>It works very well, but i am not able to save the current filter to the localstorage. It works on the web when its published but not in the desktop version.</p>
  <pre><code>import ILocalVisualStorageService = powerbi.extensibility.ILocalVisualStorageService;
  
  
  
  constructor(options: VisualConstructorOptions){
      this.storage = options.host.storageService;
  }
   
  </code></pre>
  <p>in my first update cycle i check for the localstorage and set if necessary.</p>
  <pre><code>//to get data in async function
  let cache = await this.storage.get(&quot;filter&quot;);
  
  
  //to set data in async function
  await this.storage.set(&quot;filter&quot;, &quot;xyz&quot;);
   
  </code></pre>
  <p>Is it possible to use the localstorage  in Desktop?</p>
  <p>Kind Regards</p>
  <p>Tobias</p>