Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi All
Below is the script from another PBI file :-
Solved! Go to Solution.
@Anonymous , You are creating a measure. You need a column in this case
@Anonymous , You are creating a column. No need of MAX, Table name is wrong. Correct that
Dax_Recode =
SWITCH(TRUE(),('GL_CODE'[GL_CODE])<=9,"REVENUE",('GL_CODE'[GL_CODE])<=19,"COGS",BLANK())
Hi Amit
I have enter the correct Table name , when i paste your script , i have error .
@Anonymous you can make use of this measure
Hi Amit
Thank you , it work now.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |