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

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.

Reply
alishchytovych
Regular Visitor

Slider and PBIX modification error

Hello,

 

We need to show dropdown slider with the dates (2018-01-02, 2018-01-03, ...) to an user with some date preselected. 

 

Due to the lack of the Slider default value setting flexibility we used to use direct modification of the Report/Layout file in the PBIX package (just set slider and corresponding queries values). Latest release breaks this functionality - file becames corrupted after the change of the Layout file. Is it because of some CRC / signature check implemented? Any ways to workaround it?

 

Maybe some alternative way exists (M script to set kind a "current date" is not an option - we need to show the date and allow user to select any other dates)?

 

1 ACCEPTED SOLUTION

I've ended up with the UI Automation to refresh and publish data and calculated column for Slicer to calculate "Current Period". 

It would be great to have native support of the Slicer's default value and PBIDesktop API (as MS Office provides) to simplify business process automation.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @alishchytovych,

 

AFAK, current power bi still not support setting default value. I'm not recommend you to modify pbix internal file to enable the default value, these operations may highly possible to broken original pbix file.

 

In my opinion, I'd like to suggest you vote below idea to help power bi dev team aware importance of below feature: (it already has 900+ votes)

Default Selected Slicer or Tile-By Value Configuration

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank you for the recommendation. I would appreciate to get suggestion how to create working solution as soon as possible. 

Another (possible) approach to get HTML/DOM from Chrome_RenderWidgetHostHWND PBIDesktop window. Will explore this way.

Nicefinding - if UI Automation framework enabled tool is started prior to PBIDesktop.exe, then PBI runs Chrome (WebKit?) with Accessibility enabled option and all reports elements became accessible via UI Automation. 

Unfortunately, there are no useful controls imlpemented for the Slicer (e.g. SetValue). 

I've ended up with the UI Automation to refresh and publish data and calculated column for Slicer to calculate "Current Period". 

It would be great to have native support of the Slicer's default value and PBIDesktop API (as MS Office provides) to simplify business process automation.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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