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.
Hello – How can I create a measure to show
If Product code = 10 return 30 or
If Product code = 12 return 50 or
If Product code = 13 return 70
Tabel Name = Sale
Name | Branch | Product Code | (Measure) Add column and show the value in each row |
ABC Intl | NYC | 10 | 30 |
ZZZ Logistics | LON | 10 | 30 |
ABC Intl | CAI | 12 | 50 |
ZZZ Logistics | MEL | 12 | 50 |
ABC Intl | DEL | 12 | 50 |
ABC Intl | SHA | 13 | 70 |
ABC Intl | NYC | 13 | 70 |
ZZZ Logistics | NYC | 13 | 70 |
Solved! Go to Solution.
hi @gauravnarchal
you can use this measure you will get result
Hi, @gauravnarchal
Please check the below. The formula is for creating a new column.
New Column =
SWITCH ( Sale[Product Code], 10, 30, 12, 50, 13, 70 )
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @gauravnarchal
Please check the below. The formula is for creating a new column.
New Column =
SWITCH ( Sale[Product Code], 10, 30, 12, 50, 13, 70 )
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
hi @gauravnarchal
you can use this measure you will get result
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |