Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
75 | |
62 | |
51 | |
47 |
User | Count |
---|---|
213 | |
81 | |
64 | |
60 | |
56 |