Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
I have a data of 4 columns of data types : date, string, int & float. string contains about 20 different items.
I need to insert a slicer that allows to select only a subset of those 20, about 6 of them. The remaining should not be seen or be accessible. And I would like to do that by adding a new column. If I should add or remove I would do that in the new column.
Please help.
Thanks Power BI community!
Hello @chari7595,
You can create a new column in your data model that identifies the subset of items you want to include in your slicer. E.g.
SlicerColumn = IF(
OR(
Table[ItemColumn] = "Item1",
Table[ItemColumn] = "Item2",
Table[ItemColumn] = "Item3",
Table[ItemColumn] = "Item4",
Table[ItemColumn] = "Item5",
Table[ItemColumn] = "Item6"
),
Table[ItemColumn],
BLANK()
)
Should you have any questions or further assistance, please do not hesitate to reach out to me.
Thanks but i do have to ask this. What is the function of OR in the syntax ?
@chari7595 The OR function is checking to see if Table[ItemColumn] equals any of the items ("Item1", "Item2", "Item3", ....).
If Table[ItemColumn] matches any of these items, the OR function returns TRUE and the SlicerColumn will be assigned the value of Table[ItemColumn].
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
75 | |
64 | |
39 | |
34 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |