Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
20 | |
3 | |
2 | |
2 | |
2 |