Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have transaction table with items
i want to get the count of each itemid if the status = 0 and category = 3 and it should be group by itemid and locationid in new table
it should be like this
Solved! Go to Solution.
Hi @wadda7,
please find below a possible solution.
old table (t_6):
result (t_6_new):
Best regards
Mikelytics
Did I solve your request? Please mark my post as solution
Appreciate your Kudos.
and also should be group by maintable[itemid] and maintable[locationid]
Hi @wadda7,
please find below a possible solution.
old table (t_6):
result (t_6_new):
Best regards
Mikelytics
Did I solve your request? Please mark my post as solution
Appreciate your Kudos.
work fine with me thank you
this error comes
itemid = text
inventdimid (location) = text
status = int
category = int
since your status and category is int you have to make [status] = 0 && [ category] = 3 without using the ""
Did I solve your request? Please mark my post as solution
Appreciate your Kudos.
^Please check if the columns you are use in the filter are formatted as text or number.
if it is number you do [column] = 1
if it is text you do [column] = "1"
Best regards
Mikelytics
Did I solve your request? Please mark my post as solution
Appreciate your Kudos.
Hi @wadda7 ,
you could do this e.g. with the following measure
count status 0 = COUNTX(maintable, IF(maintable[status] = 0, 1 , BLANK()))
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
i want 2 condtions staus = 0 and category = 3 how to add the second condtion
Hi @wadda7
count status 0 = COUNTX(maintable, IF(maintable[status] = 0 && maintable[category] = 3, 1 , BLANK()))
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!