Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
We are using Embedded Bi.
We use the GetReportsInGroupAsync method to get a list of reports in a workspace and display to our users.
In what order are these reports returned?
How can i control this if i want to display the reports in a specific order?
Solved! Go to Solution.
Hi @BhavnaB,
Yes, I think it is possible to change the report list orders.
AFAIK, GetReportsInGroupAsync will return a list of reports. You can create a dictionary table with name/key and index and used to compare with current report key with the dictionary table and fill them into another list based on the dictionary table index in looping functions.
After these steps, you can use the new list as source in the following operations and it will keep the 'sort order' as same as your dictionary table defined.
Integrate Power BI into Your Application: Part 3 – Embed Content
Regards,
Xiaoxin Sheng
Hi @BhavnaB,
Yes, I think it is possible to change the report list orders.
AFAIK, GetReportsInGroupAsync will return a list of reports. You can create a dictionary table with name/key and index and used to compare with current report key with the dictionary table and fill them into another list based on the dictionary table index in looping functions.
After these steps, you can use the new list as source in the following operations and it will keep the 'sort order' as same as your dictionary table defined.
Integrate Power BI into Your Application: Part 3 – Embed Content
Regards,
Xiaoxin Sheng
Hi @v-shex-msft
Thanks for the suggestion. We will use dictionary tables to sort them before displaying.
Would you know if there's any logic to how the reports will be returned by theGetReportsInGroupAsync , like last updated or in the order they were uploaded?
Hi @BhavnaB,
In fact, GetReportsInGroupAsync is a function to get report lists. I double-check on it but not found any writeback feature to submit changes back to power bi.
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
29 | |
3 | |
3 | |
2 | |
2 |