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.
Good Morning,
I have a column that comes over with location numbers. I need to find a way to transform this column to show if the value is greater than 1000 return "1000+ Stores" if value is less than 1000 return "1-999 Stores"
Thank you,
Solved! Go to Solution.
@AmberJane , You can achieve it using Switch function
Store Classification =
SWITCH (
TRUE (),
'YourTableName'[Location Number] > 1000, "1000+ Stores",
'YourTableName'[Location Number] <= 1000, "1-999 Stores"
)
Please accept as solution and give kudos if it helps
Proud to be a Super User! |
|
@AmberJane , You can achieve it using Switch function
Store Classification =
SWITCH (
TRUE (),
'YourTableName'[Location Number] > 1000, "1000+ Stores",
'YourTableName'[Location Number] <= 1000, "1-999 Stores"
)
Please accept as solution and give kudos if it helps
Proud to be a Super User! |
|
Very cool that did work but I missed something. If stores are 0 I need a third option of 0 locations impacted. How would I add that?
So need:
1000+ Stores
1-999 Stores
0 Stores
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
13 | |
12 | |
10 | |
6 |