The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello Users,
I need to create one custom column using Power Query / DAX
as per below images, i have one column conatins code against each item Name
in result i need one column that conatins only single line for each item (IF both item having same code)
please find below images for refrence. i need output as per shown in output snapshot.
Thanks in Advance.
Solved! Go to Solution.
Hi @Dhrutivyasa-070 you can create NEW table in Power BI as following:
Proud to be a Super User!
cobovalues =
CALCULATE(DISTINCT(code),CONCATENATE([item],"+",[item]),SUM(Qty),IF(COUNTROWS(DISTINCT(code),"Combo","-")))
Hi @Dhrutivyasa-070 you can create NEW table in Power BI as following:
Proud to be a Super User!
Thanks for the solution, it worked for me!
please try the following measures
Item (Combo) =
CONCATENATEX ( VALUES ( 'Table'[Item] ), 'Table'[Item], ", " )
Total Qty =
SUM ( 'Table'[Qty] )
Remark =
IF ( COUNTROWS ( VALUES ( 'Table'[Item] ) ) > 1, "Combo", "-" )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
15 | |
13 |
User | Count |
---|---|
38 | |
36 | |
22 | |
21 | |
17 |