countif
12 TopicsHow to apply Countif based on measure value
Hi, I have currently 2 tables as follows Table 1 (Multiple Side filter apply to get the measure value) Year Resource Measure Value 2024 A 1 2024 B 2 2024 C 0 2024 D 0 2024 E 3 2024 F 2 Table 2 (Same Multiple Side will be apply to get the measure (Countif) value) Value (Static Value from 0 - 10m Measure value in table 1 will only be 0 - 10) Measure (Countif) 0 2 1 1 2 2 3 1 How can I get the measure (Countif) based on the Resource count. ThanksSolved578Views0likes2CommentsCount the number of values in a row across columns
Hello - I have a table like the one here: And I would like to create a measure or a calculated column or anything that would return the average of a row across columns, ignoring the blanks. Ideally, this would mean that a row with blanks would be calculated as an average of the true numbers across the row. For example, in the table in Excel where the above information can be found, I made a column with formula: =AVERAGE([Jan FTE]:[Dec FTE]) which always calculates correctly, but I would rather it be a DAX measure or column if at all possible. Mainly because Power Pivot is determining the type of these columns as text and I can't get it to change despite many tries. Is there an easy way to do this in DAX?Solved621Views0likes1CommentAlternative to countuniqueif in dax?
My issue you is I have a data table with information saying did a customer buy a product in their first appointment yes it no, the issue is if they buy multiple products it's on multiple lines. I was able to do count unique and base it around customer Id but I can't seem to get round it. (First week of BI)563Views0likes1CommentAssign COUNTIF to row range (number of customers per number of transactions intervals)
Hi, community, I have a sales table, in which each row indicates a transaction. My end goal is to be able to show a consolidation of the number of customers in each fixed transaction range, exemplified in the "Number of transactions" column below. Number of transactions Number of customers 1 2 3 4 5 6 7 8 9 >=10 -- Let's look at the sample data: 1) This is a sales table, with 81 transactions and 8 different customers in a determined period Customer Name Transaction Date Transaction # A 20/01/2023 X1262 A 28/02/2023 X1718 B 03/02/2023 X1426 C 09/02/2023 X1496 D 09/02/2023 X1508 E 25/01/2023 X1311 E 27/01/2023 X1334 E 27/01/2023 X1336 E 02/02/2023 X1414 E 07/02/2023 X1478 F 15/02/2023 X1574 F 17/02/2023 X1613 F 02/03/2023 X1762 G 10/01/2023 X1181 G 23/01/2023 X1282 G 23/01/2023 X1283 G 31/01/2023 X1362 G 31/01/2023 X1363 G 13/02/2023 X1536 G 13/02/2023 X1537 G 22/02/2023 X1645 G 01/03/2023 X1745 G 01/03/2023 X1746 G 17/01/2023 X1227 H 07/02/2023 X1459 H 27/02/2023 X1543 2) If I was to do this in excel, I'd create an intermediate table with the number of transactions per customer A 2 B 1 C 1 D 1 E 5 F 3 G 11 H 2 3) And then I'd use another CountIF to aggregate the number of customers per number of transactions Number of transactions Number of customers 1 3 2 2 3 1 4 0 5 1 6 0 7 0 8 0 9 0 >=10 1 Seems very basic, but I didn't manage to do this 3rd step in PowerBI and it's been a few hours now 😞Solved676Views0likes2CommentsCount against multiple criteria and divide against another column value against a single row
Hi All, Hoping for some assistance please. We have work orders that engineers attend to. The value of the work is held against the work order. Each work order could have multiple bookings. So i need to count the number of eligible bookings (based on status) and then divide this number by the value of the work oder. This is to provide us with accurate daily forecast figures per each engineer. Hopefully the below example better depicts what I am trying to achieve, with the Booking Value being a custom calculated column. At the moment if i use the work order value it presents an incorrect result. Any help you can provide on any forumla or DAX I can use to get the desired result will be greatly appreciated. Thank youSolved471Views0likes1Commentcounting values with conditions using DAX
I feel like this is a very simple questions, but can't seem to get it to work. I'm trying to do a countif in essence. I basically want to summarize the number of machines needed to make certain products. Product No of Machines Biscotti 3 Cream Donut 7 Caramel 3 Chocolate cookies 7 Double Chocolate 3 Chocolate Donut 3 Custard Donut 7 Deluxe Cookies 3 I can do that using: No of Machines = COUNTROWS('Target Speeds' ) However I want to isolate the measure outside of the views context, so I can use it in a DAX formula. So if I bring machine into the visual I still get the same results. Product Machine No of Machines Biscotti Jam Machine 3 Biscotti Pressing Machine 3 Biscotti Sprinkling Machine 3 Cream Donut Boxing Machine 7 Cream Donut Filling Machine 7 Cream Donut Forming Machine 7 Cream Donut Heating Machine 7 Cream Donut Mixing Machine 7 Cream Donut Topping Machine 7 Cream Donut Packaging Heat Machine 7 Caramel Jam Machine 3 Caramel Pressing Machine 3 Caramel Sprinkling Machine 3 Chocolate cookies Boxing Machine 7 Chocolate cookies Filling Machine 7 Chocolate cookies Forming Machine 7 Chocolate cookies Heating Machine 7 Chocolate cookies Mixing Machine 7 Chocolate cookies Topping Machine 7 Chocolate cookies Packaging Heat Machine 7 Double Chocolate Jam Machine 3 Double Chocolate Pressing Machine 3 Double Chocolate Sprinkling Machine 3 Chocolate Donut Jam Machine 3 Chocolate Donut Pressing Machine 3 Chocolate Donut Sprinkling Machine 3 Custard Donut Boxing Machine 7 Custard Donut Filling Machine 7 Custard Donut Forming Machine 7 Custard Donut Heating Machine 7 Custard Donut Mixing Machine 7 Custard Donut Topping Machine 7 Custard Donut Packaging Heat Machine 7 Deluxe Cookies Jam Machine 3 Deluxe Cookies Pressing Machine 3 Deluxe Cookies Sprinkling Machine 3 Any advice?Solved745Views0likes2CommentsI need count values in another no related table
I have 4 tables. First one with region, day and a grade, second one with the region details and a third one with month and a collumn with the information about the grade necessity (yes or no) for witch month in the year and the last one is the calendar table. I want a tale with the regions, information about necessity of grade (table3) and the count of grades (table1), it is possible do that with mesuares? It s important that i can use date filter in the dashboard, like the picture below. PS: i cant conect table 1 and 3 because the many to many conection.Solved1.3KViews0likes3CommentsCount of weeks with positive percentages
Hello, I would like to identify number of weeks with positive percentage for KPI on material level. Base on time period selected I would be able to identify how many time KPI was in positive numbers. Please keep in mind my data are base on week dates. Thank you. And don't hesitate if you want more clear picture of what I want to achieve.Solved1.1KViews0likes3CommentsCount based on multiple conditions
Apologies if my subject is unclear, I wasn't sure on the language to use. I have a set of data similar to this example: https://data2actionltd-my.sharepoint.com/:x:/g/personal/aimee_laird_data2action_co_uk/EcITVcSSC6dNh9gtbim7_5UBayIfCx0U3OzSR5MZxGZh3w?e=bEoLnE I think I need to do this as a calculated column rather than a measure, however open to your advice. I am looking at the how many items were sold to a property. Depending on the item, is the sale classed as a Single or a Dual sale. E.g. Water + Bread = Dual Water + Sugar = Single Water + Bread + Sugar = Dual Water = Single Bread = Single In my dashboard, I want to show: Number of Multi sales WTD, MTD and YTD Number of Single sales WTD, MTD, and YTD Help please! i've tried all sorts but can't make sense of a solution.Solved965Views0likes1Comment