cumulative count
14 TopicsCumulative Count by Category, Sorted by Frequency
Hello. I have data that needs to be arranged by frequency (how many claims have occured) per location. The result is a bar graph with the locations with the most claims appearing first: Nice! First part is done. I then need to create a line that cumulatively sums up the total number of claims for each location, then displays it as a percentage of the total number of claims (for the filtered timeframe). Hypothetically it would look something like thisq (this screenshot comes from Excel): However I cannot seem to get the line to cooperate. My last attempt ended up looking like this: Any feedback on how to make this line function like the one above would be much appreciated. Thank you!Solved666Views0likes2Commentscumulative count by dates actual vs Planned
Hello, I'm new to the world of Power Bi and was hoping I could get some guidance on how to calculate the number of scheduled and actual dates by month so that I can build a pivot table where: lines - company number columns - days of the month. I previously found the answer in this post: https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Count-by-Date-Actual-vs-Planned/m-p/1544172#M30476 But I couldn’t figure out how to connect 2 columns of one table with a table with dates and use the relationship function. Any help you can provide is greatly appreciated.Solved749Views0likes2CommentsCumulative count for each level by month
Hey wonderful ppl, New Year Greetings. Am in need to calculate cumulative count for each level by months. There are three levels in the data, namely 'A', 'B' and 'C', with 'A' being the lowest. Need cumulative count for each of the aforementioned levels by month. Also, pls note that an ID can have two level during a month but must always be counted once and only for the Highest level achieved, for e.g. if an ID had level 'A' and level 'B' in January then this ID must only be counted for level 'B' and not for level 'A'.616Views0likes3Commentscumulative count measure per row
hello i need to create a measure that calculates incentive as per below rules Achievement Incentive 1 to 5 count of sales 2$ 6 to 10 count of sales 4 $ 11 to 15 count of sales 6 $ 16 and above count of sales sales 8 $ what this means, if agent has made 15 transactions, he will get incentive of (2$*5) for first 5 transactions, and (4$*5) for next 5 transactions and (6$ *5) the 5 transactions after. so total incentive= 10+20+30=60$ i created below measure = CALCULATE(IF([MNP cumulative count]<=5,[MNP cumulative count]*2,IF([MNP cumulative count]>=6 &&[MNP cumulative count]<=10,[MNP cumulative count]*4,IF([MNP cumulative count]>=11 &&[MNP cumulative count]<=15,[MNP cumulative count]*6,IF([MNP cumulative count]>=16,[MNP cumulative count]*8,0))))) and [MNP cumulative count]= CALCULATE(SUMX(SUMMARIZE('categories trans','categories trans'[AGENT_ID],'categories trans'[AGENT_NAME],'categories trans'[TRANSDATE],'categories trans'[achievement],'categories trans'[Categoty]),[mnp distinct count]), FILTER ( ALLSELECTED('categories trans'), 'categories trans'[TRANSDATE]<=MAX('categories trans'[TRANSDATE]))) my problem is the cumulitve count does not count correctly when agent has 2 transactions in the same day. instead of counting them as 2 it's counting them as 1 also the data i have is as below table agent id agent name transaction value (achievement) date 123 abc 2 1/11/2023 456 def 1 2/11/2023680Views0likes2CommentsCumulative Amount for the table and Chart
Dear all, Will be very thankful if you could help me to solve three problems related to cumulative amount. I have calculated the cumulative amount for employees (taking into account the employee Start and End date). Used such formula: Employees, Cumulative count = VAR CalendarMin = MIN('Calendar'[Date]) VAR CalendarMax= MAX('Calendar'[Date]) RETURN CALCULATE( [Employees count], Employees[Start Date] <= CalendarMax && (Employees[End Date] >= CalendarMin|| ISBLANK(Employees[End Date])), DATESINPERIOD('Calendar'[Date], LASTDATE('Calendar'[Date]), -10, YEAR)) The Cumulative amount appears correctly: 11. 1. Is possible to show in the table "Total" 11 instead of 21?| 2.The same problem appears in "Card", it shows 21 instead of 11. Is it possible to somehow modify the formula to get the correct cumulative amount of employees? 3. I also need to show the result in bar charts but again the total amount appears incorrect - 21: Thank you in advance for help!Solved698Views0likes2CommentsCalculated column with cumulative count of repeating dates
I have the following calculated table: I've been trying to add to that table a calculated column that runs a cumulative count of the repeating dates from the date column ([Data]) which should (obviously) reset back to 1 every time a new date comes by. The closest I could get was with the code below, but it still does not produce the results I want, which I hardcoded in red for better understanding of what I really need. Any help on this one is greatly appreciated!Solved607Views0likes1CommentHow to progressively count values in a column
Hi All After some help with the sample data i have below, i have a column called Reference and want to add a new column which counts how many occurences cumulatively within the data, for example '1472321-2860846' shows up 3 times in the reference column so what i would like is for Power Bi to show that it occurs 3 times but show the 1st instance, 2nd Instance and 3rd Instance if that makes sense, have done a bit of googling and searching this forum but so far havent found a solution Hoping this communintiy can help Thanks in advanced AshSolved1KViews0likes2CommentsDAX Optimisation Cumulative DISTINCTCOUNT
Hi All, I am wondering if someone can help me with a very slow DAX calculation. Business Case: We consider a customer to be financially active on our system for a financial year if the sum of their transactions for a financial year for any Group ID is greater than 0. Our financial year lasts from 1st of August and ends 31st of July. Product ID's are grouped under a Grouping ID. DAX I created a grouping calculated column in the customer table, (Fiscal Year || Grouping ID || Customer ID) { to avoid having to create joins in the query step). I want to calculate the number of financially active customers ( Active Customer Count ) and a cumulative count of this metric (Cumulative Active Customer Count). However the cumulative sum is very slow (20-30 seconds long) Active Customer Count = CALCULATE( DISTINCTCOUNT('Customer Tbl'[Customer ID]), FILTER( ALL('Customer Tbl'[Fiscal Year || Grouping ID || Customer ID]), [Transaction Amnt]>0)) Cumulative Active Customer Count = CALCULATE( [Active Customer Count], CALCULATETABLE( DATESYTD('Dim Date'[Date], "31-07"), 'Dim Date'[Is Future Date] = "Not Future Date" ) ) Any idea on what I can do to speed up this cumulative count? Link to file: https://drive.google.com/file/d/18OuoPSx2pFmk0Q-NCU1hhPcFyt_pQvr3/view?usp=sharingSolved652Views0likes1CommentCumulative count with date filters - got stuck and desperate
Hey guys, so, long story short: I need a bar chart that will count the number of projects over time with several conditions. Below are the tables that are needed (for the sake of simplicity let's focus on project name 976): 1) Table 1 We can see the project's name and the date its dashboard was created 2) Table 2 We have a table with the project's name and the date when a part number for this project was added. Now, for the main part: we can see that the dashboard for project 976 was created in August 2022 we can see that parts were added to this project, both before AND in the same month the dashboard was created Goal - to calculate the cumulative number of projects (starting from the earliest date the dashboard was created) from table 1, BUT: There should be AT LEAST ONE part # that was added BEFORE or IN THE SAME MONTH the dashboard for the project was created. - So, the bar chart will count project 976 - because it has both dashboard created in August and at least one part that was added before or in the same month. Now, let's imagine that project 976 had its dashboard created in August 2022, but a part # was firstly added in September 2022: That means that project 976 should not be counted for August 2022, because part # was added in the next month. 976 would be counted on the chart starting September 2022. If a project has no parts added (BLANK), obviously, it should not be counted at all. I would be eternally grateful to the person who will help me with it + a little reward from me, personally.Solved2.6KViews0likes16Commentsfind cumulative count following monthly criteria
i want to calculate distinct cummulative count of users by month in the follwing criteria assume we have: total users month 30 may2022 20 april2022 21 march2022 19 february2022 i want to find distinct cumulatice count for each month plus the previous month for example, for the month of may i want to see distinct cumulative active users from may and april and for april i want to see active users from april and march and same thing for march and feb assume the result will be now: total users month 38 may2022 35 april2022 25 march2022 23 february2022 and following the same criteria to find cumulative count for the each month with 2 previous month for example,for the month of may i want to see active users from may and april and march and for april i want to see active users from april and march and february and same thing for january assume the result will be total users month 53 may2022 50 april2022 40 march2022 33 february2022 after that i want to apply same calculation for 3,4,5 previous months what kind of dax and functions can help me achieve the calculation?Solved749Views0likes2Comments