Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a categories
Categories
A
B
C
D
E
Desired category output is
A,B = Car
A,B,E=Bike
A,B,C,D,E=Plane
Solved! Go to Solution.
@GAURAV7781 I have a coarse solution if I understand your issue correctly.
Measure =
VAR __selected =
CONCATENATEX ( ALLSELECTED ( Categories[Category] ), Categories[Category] )
RETURN
SWITCH (
__selected,
"AB", "Car",
"ABE", "Bike",
"ABCDE", "Plane",
"Other option"
)
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! |
Hi ,
This is the least to say a creative solution to the problem! 🙂
I'm pretty sure if you try "SW" instead of "WS" it will work.
If it doesnt, i'll help you with a different approach.
Regards,
Robbe
@GAURAV7781 I have a coarse solution if I understand your issue correctly.
Measure =
VAR __selected =
CONCATENATEX ( ALLSELECTED ( Categories[Category] ), Categories[Category] )
RETURN
SWITCH (
__selected,
"AB", "Car",
"ABE", "Bike",
"ABCDE", "Plane",
"Other option"
)
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! |
@CNENFRNL hi is there a way to make desired column as slicer . My user want to select car and bike as filter
I tried W, S & rest are working
only when i am select WS together not working @CNENFRNL WS Not woking
Hi ,
This is the least to say a creative solution to the problem! 🙂
I'm pretty sure if you try "SW" instead of "WS" it will work.
If it doesnt, i'll help you with a different approach.
Regards,
Robbe
@GAURAV7781 I see many other viz on this page, thus the result of your Area viz is an integrated effects under all possible filtering on viz. Pls try this if you'd like to make Area viz independant of other filterings,
Measure =
VAR __selected =
CONCATENATEX (
CALCULATETABLE ( ALLSELECTED ( Categories[Category] ), ALLEXCEPT ( Categories, Categories[Category] ) ),
Categories[Category]
)
RETURN
SWITCH (
__selected,
"AB", "Car",
"ABE", "Bike",
"ABCDE", "Plane",
"Other option"
)
Better to attach a mockup file for further debugging if the issue lingers.
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! |
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |