Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
78 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |