Forum Discussion
Hesham
8 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...
- 8 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
v-yulgu-msft
Microsoft Employee
8 years agoHi 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
8 years agoFrequent Visitor
WOW that exactly what i need, thank you so much for your efforts and many thanks for all who tried to help i really appreciate your efforts.
Best ragrds
Hesham