Forum Discussion
Slicer - Include Blanks automatically
- 1 year ago
Hi wonka1234,
To allow users to switch between “Draft” or “Final” and always include blank values, you can follow this method.
First, create a new table in Power BI which is not connected to your main data model. This table should just have two rows: one with “Draft” and one with “Final”.You can create it using a DAX formula like DATATABLE("Status", STRING, { {"Draft"}, {"Final"} }).
Now, use this new table in a slicer so that the user can choose either “Draft” or “Final”.
Since it’s not connected to your main data directly, you need a measure to apply this selection to your visuals.
Write a DAX measure that checks if the selected value matches the “Draft_or_Final” column in your data, or if that column is blank.
If either condition is true, it will return TRUE. Then, apply this measure as a visual-level filter (set to TRUE) for your charts.
This way, only matching rows and blank rows are shown. The user doesn't have to manually select blanks, and you avoid showing duplicate values or unwanted blank options in the slicer.
Even though you have many visuals, this setup will help you maintain clean filtering across the report without too much repetition.
Happy to help! If this addressed your concern, marking it as "Accepted Solution" and giving us "kudos" would be valuable for others in the community.
Thank you.
Hi wonka1234,
I wanted to check in your situation regarding the issue. Have you resolved it? If you have, please consider marking the reply as Accepted solution and give Kudos that helped you. It would be greatly appreciated by others in the community who may have the same question.
Thank you.
Hi wonka1234,
As we did not get a response, may I know if the above reply could clarify your issue, or could you please help confirm if we may help you with anything else?
And if the provided information meets your requirements, you can Accept the solution and also give Kudos on that reply. It helps other users who are searching for this same information and find the information.
Your understanding and patience will be appreciated.