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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.