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.
hi friends
i want to write a measure for create local/export category product using the product code
for example :
product code start with number 1 = local sales
product code start with number 2 = export
Solved! Go to Solution.
Hi @ahmadi1364 ,
Here are the steps you can follow:
1. Create calculated column.
Test =
IF(
VALUE( LEFT('Table'[product code],1))=1,"local sales",
IF(
VALUE(LEFT('Table'[product code],1))=2,"export",BLANK()))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @ahmadi1364 ,
Here are the steps you can follow:
1. Create calculated column.
Test =
IF(
VALUE( LEFT('Table'[product code],1))=1,"local sales",
IF(
VALUE(LEFT('Table'[product code],1))=2,"export",BLANK()))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
7 |