The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
Solved! Go to Solution.
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.
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.
Hi @pratikrami ,
We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.
We appreciate your engagement and thank you for being an active part of the community.
Best Regards,
Lakshmi.
Hi @pratikrami ,
We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.
We appreciate your engagement and thank you for being an active part of the community.
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!
User | Count |
---|---|
65 | |
61 | |
60 | |
54 | |
30 |
User | Count |
---|---|
180 | |
88 | |
72 | |
48 | |
46 |