The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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! |
User | Count |
---|---|
24 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |