Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
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
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
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |