Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Requirment : I want to develop a Dashboard with 2 pages. both will have same visuals. Also I have added slicer on page 1 and its hidden on page 2. I want to integrate this dashboard in angular. So when I open this dashboard from angular I will pass page id of page 2 and slicer value in URL in filters. but Some users will access this dashboard directly not from Angular app. So they will see page 1 where they need to manually select slicer value from dropdown. How can I achieve this ?
Already implemented and problem : As single selection slicer already contains default value, URL params doesnt work if I try this on published dashboard. It only works if blank is selected in slicer instead of default value. and I cant have blank value for that field as there is a one-to-many relation on that field.
Hi @pratikrami ,
I wanted to follow up and confirm whether you’ve had the opportunity to review the information provided by @Ilgar_Zarbali , @mh2587 . If you have any questions or need further clarification, please don’t hesitate to reach out.
We appreciate your collaboration and support!
Best regards,
Lakshmi.
Power BI single-select slicers always default to one value selected when the field has no blanks. Because of this:
1-Add a “blank” option in the data model (recommended)
SlicerTable =
UNION (
ROW ( "YourField", BLANK() ),
DISTINCT ( YourTable[YourField] )
)
2-Use a disconnected table for the slicer
SelectedValueMeasure =
CALCULATE (
SELECTEDVALUE ( FactTable[YourField] ),
TREATAS ( VALUES ( SlicerTable[YourField] ), FactTable[YourField] )
)
3-Apply a default bookmark
4-Use relative filtering (if possible)
If the field supports a relative condition (e.g., date ranges), you can switch the slicer to relative mode, but this is less flexible for categorical fields.
To make the slicer truly start blank for direct users and allow Angular filters to work, you must add a blank option to the slicer’s source table or use a disconnected table approach with DAX. Power BI doesn’t natively allow single-selection slicers to default to no selection otherwise.
Turn single select OFF, and enforce single selection with a DAX measure:
SelectedValueCheck = //Try this might help you
IF (
HASONEVALUE(Table[Column]),
1,
ERROR("Please select only one value")
)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!