Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Experts ,
I am new to Power BI .
My requirement is I need to populate calculated column as Group from the existing column Item for example
Item Group
Shirt Cloth
Pants Cloth
Laptop Electronic Device
Mobile Electronic Device
Kindly suggest .
Regards
Ganesh Jagdhane
Solved! Go to Solution.
Hi @Anonymous ,
You may add a calculated column to your table with the following DAX:
Group =
SWITCH(TRUE(),
'Table'[Item] = "Shirt", "Cloth",
'Table'[Item] = "Pants", "Cloth",
'Table'[Item] = "Laptop", "Electronic Device",
'Table'[Item] = "Mobile", "Electronic Device",
"Other")
Is this what you are looking for?
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
Hi @Anonymous ,
You may add a calculated column to your table with the following DAX:
Group =
SWITCH(TRUE(),
'Table'[Item] = "Shirt", "Cloth",
'Table'[Item] = "Pants", "Cloth",
'Table'[Item] = "Laptop", "Electronic Device",
'Table'[Item] = "Mobile", "Electronic Device",
"Other")
Is this what you are looking for?
Kind regards
Djerro123
-------------------------------
If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.
Keep those thumbs up coming! 🙂
Proud to be a Super User!
@Anonymous @JarroVGIT
in case of simple comparision with the only column it should be easier to use statement like
Group =
SWITCH('Table'[Item],
"Shirt", "Cloth",
"Pants", "Cloth",
"Laptop", "Electronic Device",
"Mobile", "Electronic Device",
"Other")
do not hesitate to give a kudo to useful posts and mark solutions as solution
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
122 | |
80 | |
47 | |
44 | |
35 |
User | Count |
---|---|
182 | |
83 | |
70 | |
47 | |
45 |