Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi,@zycc_zycc .I am glad to help you.
Unfortunately, due to the working environment, I am unable to repeat your question. I hope my suggestions below are helpful
I noticed that the documentation you provided mentioned setting the default values of the slicer, please check if you have successfully set them.
Use slicers in Power BI embedded analytics | Microsoft Learn
The limitations:
For reloading the report :report.reload() , maybe you could try report.updatesettings ()
Update report settings at runtime in Power BI embedded analytics | Microsoft Learn
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, thank you for your reply.
I looked at my code and found that I added a paragraph where, during 'pageChange', I set an array with only one option for this slicer. After loading is complete, the slicer displays the default values I set, and when using the slicer, only this option can be selected. And I also found an issue where the default value settings sometimes fail when I have a selector/time slicer in my slicer. Can you tell me the reason for this? Thank you.
Hi,@zycc_zycc .Thank you for your reply.
Unfortunately, I can not reproduce your question due to circumstances. It does look strange from the runtime results (the date slicer is causing an indirect failure in code execution) You could try creating a support ticket for more help.
You can create a support ticket for free and a dedicated Microsoft engineer will come to solve the problem for you.
It would be great if you continue to share in this issue to help others with similar problems after you know the root cause or solution.
The Link of Power BI Support:
Microsoft Fabric Support and Status | Microsoft Fabric
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian
Thank you.
User | Count |
---|---|
4 | |
3 | |
3 | |
2 | |
2 |