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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I have a physical inventory document that I am being asked to incorporate checks to see how many flags each record sets off. The spreadsheet version looks like this:
I am trying to figure out how to tally how many of the flags (column L:P) are reached per row.
Solved! Go to Solution.
Hi @gbpbi
Based on your needs, I have created the following table.
You can return "1" with the "RECOUNT" tag and the rest with null values, and then add up the returned values.
Count =
VAR _50percent = IF(SELECTEDVALUE('Table'[+ / - 50%])= "RECOUNT",1,BLANK())
VAR _any_change = IF(SELECTEDVALUE('Table'[Any change])= "RECOUNT",1,BLANK())
var _over1000 = IF(SELECTEDVALUE('Table'[Over 1000])= "RECOUNT",1,BLANK())
var _From0tovalue = IF(SELECTEDVALUE('Table'[From 0 to value])= "RECOUNT",1,BLANK())
var _Fromvalueto0 = IF(SELECTEDVALUE('Table'[From value to 0])= "RECOUNT",1,BLANK())
RETURN
_50percent+_any_change+_From0tovalue+_Fromvalueto0+_over1000
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
First and foremost, in Power Query, you should select all columns other than the last 5 and click on "Unpivot Other Columns".
Hi @gbpbi
Based on your needs, I have created the following table.
You can return "1" with the "RECOUNT" tag and the rest with null values, and then add up the returned values.
Count =
VAR _50percent = IF(SELECTEDVALUE('Table'[+ / - 50%])= "RECOUNT",1,BLANK())
VAR _any_change = IF(SELECTEDVALUE('Table'[Any change])= "RECOUNT",1,BLANK())
var _over1000 = IF(SELECTEDVALUE('Table'[Over 1000])= "RECOUNT",1,BLANK())
var _From0tovalue = IF(SELECTEDVALUE('Table'[From 0 to value])= "RECOUNT",1,BLANK())
var _Fromvalueto0 = IF(SELECTEDVALUE('Table'[From value to 0])= "RECOUNT",1,BLANK())
RETURN
_50percent+_any_change+_From0tovalue+_Fromvalueto0+_over1000
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Depending on your model needs, I would use power query to split your spreadsheet into two tables, one named warehouse_orders and the other named recount_alerts.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.