The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a table "Sales"with the columns for product, customer number and group ID. I would like to identify groups that have more than 5 members for product "M", why is the below formula not working, kindly suggest a better approach;
Solved! Go to Solution.
can you please try
GroupsWithMoreThanFiveMembersAndProduct is M =
FILTER(
CALCULATETABLE(
SUMMARIZE(
'Sales',
'Sales'[Group ID],
"Count", COUNT('Sales'[Customer Number])
),
'Sales'[Product] = "M"
),
[Count] > 5
)
hi @hosea_chumba ,
try like:
GroupsWithMoreThanFiveMembersAndProduct is M =
FILTER(
ADDCOLUMNS(
SUMMARIZE(
'Sales',
'Sales'[Product],
'Sales'[Group ID]
),
"Count",
CALCULATE(COUNT('Sales'[Customer Number]))
),
[Count]>5&&'Sales'[Product] = "M"
)
hi @hosea_chumba ,
try like:
GroupsWithMoreThanFiveMembersAndProduct is M =
FILTER(
ADDCOLUMNS(
SUMMARIZE(
'Sales',
'Sales'[Product],
'Sales'[Group ID]
),
"Count",
CALCULATE(COUNT('Sales'[Customer Number]))
),
[Count]>5&&'Sales'[Product] = "M"
)
can you please try
GroupsWithMoreThanFiveMembersAndProduct is M =
FILTER(
CALCULATETABLE(
SUMMARIZE(
'Sales',
'Sales'[Group ID],
"Count", COUNT('Sales'[Customer Number])
),
'Sales'[Product] = "M"
),
[Count] > 5
)
User | Count |
---|---|
24 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
9 | |
9 |