Forum Discussion

ngocnguyen's avatar
ngocnguyen
Helper IV
4 years ago
Solved

Calculate segment

Hi

I have table 1 and wanna create the output table in power BI with below logic:

 

Calculate the No. of SO that have the "Discount/Quantity" belong to 3 segments :"  0 -2, 2-6 and >= 6"

Discount/Quantity of 1 SO  = Total discount of this SO   /  Total Quantity of this SO .

ex : Discount/Quanty of SO "A"  = (60+30)/ (10+12 ) = 4.1

 

Is there anyway to get the output without using calculated column? 

 

 

 

I have 

4 Replies