Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Custom Visual Filter - Desktop - LocalStorage Problem

Hello guys,

 

i developed an custom filter for iso calender weeks for my company.

It works very well, but iam not able to save the current filter to the localstorage. It seems to work on the web but not in the desktop version.

 

 

 

import ILocalVisualStorageService = powerbi.extensibility.ILocalVisualStorageService;



constructor(options: VisualConstructorOptions){
    this.storage = options.host.storageService;
}

 

 

in my first update cycle i check for the localstorage and set if necessary.

 

 

//to get data in async function
let cache = await this.storage.get("filter");


//to set data in async function
await this.storage.set("filter", "xyz");

 

 

 

Is it possible to use the localstorage  in Desktop?

 

 

Kind Regards

Tobias

1 REPLY 1
dm-p
Super User
Super User

Hi @Anonymous,

I personally haven't tried it in Desktop, but does your visual meet the requirements for being able to use the API? The two key ones are that it must be in AppSource and certified. If so, then it should be a case of emailing the team to request access on a per visual basis.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.