Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Community..!!
I wanted to calculate count of clients that ordered more than 25000 products.
Could anyone help me to solve this.?
We have a client_id and quantity of products.
@ppatil , create a measure like
countx(filter(sumamrize(Table, Table[Client], "_1", sum(Table[Amount])), [_1] >25000), [Client])
Hi @amitchandak
Client_id is in Client table and Quantity in Order table
what should be the relationship between these two tables?
Hi @ppatil,
Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Client table
OrderDetails Table
Relationship between these two tables
HI @ppatil,
Did these tables links based on the index field? If that is the case, you can try to use the following measure formulato to achieve your requirement.
formula =
var Orderlist=
FILTER (
SUMMARIZE (
OrderDetails,
[Index],
[Product ID],
"Total Amount", SUM ( OrderDetails[Quantity] )
),
[Total Amount] > 25000
)
return
COUNTROWS (FILTER (ALLSELECTED (Client),[Index] in SELECTCOLUMNS (Orderlistm,"Index",[Index])))
If these tables are not linked based on the index field, you can replace the 'Index' part in the above table with your table relationships key field.
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |