The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello!
I have a dataset based on Commodities that I would like to be able to display data based on the selected group of commodities.
For example - I've grouped the below items according to their market
Dairy - cheese, milk, butter, oil
Soda - sugar, aluminum
Currency - USD, Canadian Dollar, Brazilian Dollar
I want to be able to have a slicer that, when selected, shows me the items in that grouping only. So if I select Dairy, I want to display cheese, milk, butter, and oil data.
Any help would be appreciated.
Solved! Go to Solution.
Try this calculated column:
Group =
VAR vItem = Table1[Item]
VAR vResult =
SWITCH (
TRUE (),
vItem IN { "cheese", "milk", "butter", "oil" }, "Dairy",
vItem IN { "sugar", "aluminum" }, "Soda"
)
RETURN
vResult
Create a slicer using the Group column.
Proud to be a Super User!
Try this calculated column:
Group =
VAR vItem = Table1[Item]
VAR vResult =
SWITCH (
TRUE (),
vItem IN { "cheese", "milk", "butter", "oil" }, "Dairy",
vItem IN { "sugar", "aluminum" }, "Soda"
)
RETURN
vResult
Create a slicer using the Group column.
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
79 | |
72 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
69 | |
64 | |
57 |