Forum Discussion
Hesham
9 years agoFrequent Visitor
Summarize table and add new column
Hi all i am new in Power BI so, i stopped in few Issues the most important one is: I have huge data table as below: (Details table) The point i need to Summarize table and add new column ba...
- 9 years ago
Hi Hesham,
Create a calculated table using below formula:
Summarize Table = ADDCOLUMNS ( SUMMARIZE ( Sheet1, Sheet1[Cus Phone], "Total order", DISTINCTCOUNT ( Sheet1[Order_num] ), "Total revenue", SUM ( Sheet1[Item_Rev] ) ), "Flag", IF ( [Total order] <= 2, "Light", IF ( [Total order] >= 5, "High", "Medium" ) ) )By the way, please mask sensitive data before uploading.
Best regards,
Yuliana Gu
Hesham
9 years agoFrequent Visitor
Hello Abduvali
thank you so much for the steps and i need also to add the total Trx per customer in same table and in group by it is not allawed, i checked also the advanced tab but not working with me , kindly your advice to have a table like that consist of (Customer phone-Total orders- Total Revenue)
Anonymous
9 years agoNot applicable
How do you calculate TRX per customer?
- if you can please provide some data sample in excel format to speed things up
- Hesham9 years agoFrequent Visitor
by Order Number because it is Uniqe.
- Hesham9 years agoFrequent Visitor
attached as requested in the below link
- Anonymous9 years agoNot applicable
Follow to the link below to preview the file from my library:
Let me know if thats what you were looking for.
Regards
Abduvali