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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
danieleperilli
Kudo Commander
Kudo Commander

SelectionId from data received with fetchMoreData()

I have a problem with the fetchMoreData() function.

I'm able to retrieve all the data from my dataset, but when I try to generate the selectionIds, something strange happens.

 

I use this code to generate the selectionIds:

 

host.createSelectionIdBuilder().withCategory(category, i).createSelectionId();

After receiving all data (in the last update), I create an internal data model and assign selectionIds to each data point. The data points in the first segment (let's say the first 500) have working selectionIds, all the others have something like this:

 

null-selid.png

 

Am I doing something wrong?

 

Thanks

11 REPLIES 11
v-viig
Community Champion
Community Champion

Hi @danieleperilli,

 

I'll check this issue out and get back.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Thanks!

You're right. This is an issue as Power BI sends identity in another format for some reasons.

We'll investigate this issue deeper and fix soon.

 

image.png

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Any update on this? Thanks!

No updates so far. This issue is on backlog.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Hi @v-viig & @danieleperilli 

I have the same issue - was there a work-around for this or a schedule on the fix?

Thanks,

Matt

+1 on this. Have the code fully implemented (was working on API 1.x) but switched off in my current releases as it's not in the same 'shape' when fetched in 2.x. Would be good to know if there's an ETA on a fix 🙂





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

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


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




It is expected behavior that SelectionIds are built differently in API 2.x than in API 1.x, however, this mustn't break a visual selection logic.

To clarify the issue I need to understand what version of API do you use.

Is it possible to send us .pbix with a case to pbicvsupport@microsoft.com because I couldn't reproduce some troubles with selection and fetchMoreData() function in the last API?

 

Thanks!

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Hi @v-evelk and thanks for having a look. I'll need to bow out to others on the selectionId issue, and I think I might have latched onto a different problem, so apologies to others on this thread.

 

My issue was more general in that fetchMoreData() hadn't been working since I moved from 1.13 to 2.1 and hadn't seen an update on its resolution. I've migrated my visual to 2.3 and the code works fine now. I'll consider adding the feature back into my next update with a bit more testing.





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

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


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




Hi guys,

 

I am checking the status and will provide details here soon.

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Great, thank you!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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