Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm trying to figure out the best way to organize this.
I have a table describing items - the items can come in a few different colors.
seq | item | color |
111 | bike | blue |
111 | bike | green |
112 | boat | blue |
113 | train | blue |
113 | train | white |
113 | train | green |
114 | tricycle | purple |
I have two requirements:
1. I want to be able to display all the colors for that item in a single column in a visual separated by a comma:
111 | bike | blue, green |
112 | boat | blue |
113 | train | blue, green, white |
114 | tricycle | purple |
2. I want to build a slicer that shows the colors and will select any of the rows that include that color. So the slicer options would be
blue
green
white
purple
If the user selected blue, the visual would show:
111 | bike | blue, green |
112 | boat | blue |
113 | train | blue, green, white |
if they selected white, they would see:
111 | bike | blue, green |
112 | boat | blue |
113 | train | blue, green, white |
Solved! Go to Solution.
Hi @Rjesak ,
create a new calculated column like this:
Use a table visual and a slicer as shown in figure:
Sample PBIX-file is attached.
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
You are both SO awesome and both the solutions work so I just marked the first one as the solution. But thank you both so much!
Hi @Rjesak ,
create a new calculated column like this:
Use a table visual and a slicer as shown in figure:
Sample PBIX-file is attached.
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
Colours = CONCATENATEX( info, Info[color], ", " )
Colors = CALCULATE( [Colours], VALUES( Info[item] ), ALL( Info[color] ) )
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |