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.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
43 | |
38 | |
29 |
User | Count |
---|---|
154 | |
93 | |
63 | |
42 | |
41 |