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
thanks in advance 🙂
Solved! Go to Solution.
hi @rdiazd73
use SWITCH()
M/S/NO MOVER =
SWITCH(TRUE();
'SLOW MOVERS ANALYSIS'[NO MOVER]>='SLOW MOVERS ANALYSIS'[MOVER];"NO MOVER";
'SLOW MOVERS ANALYSIS'[SLOW MOVER]>='SLOW MOVERS ANALYSIS'[MOVER];"SLOW MOVER";
'SLOW MOVERS ANALYSIS'[MOVER]>='SLOW MOVERS ANALYSIS'[SLOW MOVER];"MOVER";
BLANK()
)
This solution using nested IFs with AND works
Thanks
M/S/NO MOVER =
IF (
'SLOW MOVERS ANALYSIS'[MOVER] > 'SLOW MOVERS ANALYSIS'[NO MOVER]
&& 'SLOW MOVERS ANALYSIS'[MOVER] > 'SLOW MOVERS ANALYSIS'[SLOW MOVER],
"MOVER",
IF (
'SLOW MOVERS ANALYSIS'[NO MOVER] > 'SLOW MOVERS ANALYSIS'[MOVER]
&& 'SLOW MOVERS ANALYSIS'[NO MOVER] > 'SLOW MOVERS ANALYSIS'[SLOW MOVER],
"NO MOVER",
IF (
'SLOW MOVERS ANALYSIS'[SLOW MOVER] > 'SLOW MOVERS ANALYSIS'[MOVER]
&& 'SLOW MOVERS ANALYSIS'[SLOW MOVER] > 'SLOW MOVERS ANALYSIS'[NO MOVER],
"SLOW MOVER",
BLANK ()
)
)
)
This solution using nested IFs with AND works
Thanks
M/S/NO MOVER =
IF (
'SLOW MOVERS ANALYSIS'[MOVER] > 'SLOW MOVERS ANALYSIS'[NO MOVER]
&& 'SLOW MOVERS ANALYSIS'[MOVER] > 'SLOW MOVERS ANALYSIS'[SLOW MOVER],
"MOVER",
IF (
'SLOW MOVERS ANALYSIS'[NO MOVER] > 'SLOW MOVERS ANALYSIS'[MOVER]
&& 'SLOW MOVERS ANALYSIS'[NO MOVER] > 'SLOW MOVERS ANALYSIS'[SLOW MOVER],
"NO MOVER",
IF (
'SLOW MOVERS ANALYSIS'[SLOW MOVER] > 'SLOW MOVERS ANALYSIS'[MOVER]
&& 'SLOW MOVERS ANALYSIS'[SLOW MOVER] > 'SLOW MOVERS ANALYSIS'[NO MOVER],
"SLOW MOVER",
BLANK ()
)
)
)
thank you @glissando
the best solution and most reliable results is :
M/S/NO MOVER =
IF (
'SLOW MOVERS ANALYSIS'[MOVER] >= 'SLOW MOVERS ANALYSIS'[NO MOVER]
&& 'SLOW MOVERS ANALYSIS'[MOVER] >= 'SLOW MOVERS ANALYSIS'[SLOW MOVER];
"MOVER";
IF (
'SLOW MOVERS ANALYSIS'[NO MOVER] >= 'SLOW MOVERS ANALYSIS'[MOVER]
&& 'SLOW MOVERS ANALYSIS'[NO MOVER] >= 'SLOW MOVERS ANALYSIS'[SLOW MOVER];
"NO MOVER";
IF (
'SLOW MOVERS ANALYSIS'[SLOW MOVER] >= 'SLOW MOVERS ANALYSIS'[MOVER]
&& 'SLOW MOVERS ANALYSIS'[SLOW MOVER] >= 'SLOW MOVERS ANALYSIS'[NO MOVER];
"SLOW MOVER";
BLANK ())))
The solution using the SWITCH function is better option with the modifications below...
Thanks
M/S/NO MOVER 2 =
SWITCH ( TRUE (),
SUM ( 'SLOW MOVERS ANALYSIS'[NO MOVER] ) > SUM ( 'SLOW MOVERS ANALYSIS'[MOVER] ), "NO MOVER",
SUM ( 'SLOW MOVERS ANALYSIS'[SLOW MOVER] ) > SUM ( 'SLOW MOVERS ANALYSIS'[MOVER] ), "SLOW MOVER",
SUM ( 'SLOW MOVERS ANALYSIS'[MOVER] ) > SUM ( 'SLOW MOVERS ANALYSIS'[SLOW MOVER] ), "MOVER",
BLANK ()
)
hi @rdiazd73
use SWITCH()
M/S/NO MOVER =
SWITCH(TRUE();
'SLOW MOVERS ANALYSIS'[NO MOVER]>='SLOW MOVERS ANALYSIS'[MOVER];"NO MOVER";
'SLOW MOVERS ANALYSIS'[SLOW MOVER]>='SLOW MOVERS ANALYSIS'[MOVER];"SLOW MOVER";
'SLOW MOVERS ANALYSIS'[MOVER]>='SLOW MOVERS ANALYSIS'[SLOW MOVER];"MOVER";
BLANK()
)
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 |
---|---|
122 | |
89 | |
75 | |
55 | |
45 |
User | Count |
---|---|
134 | |
120 | |
76 | |
65 | |
64 |