group
10 TopicsDAX Measure - Group Total in each customer number row
Hi, I have a seemingly simple question, however, I just can't seem to get it right. My question is the following: I have customers divided into CSAC3 groups. So a customer belongs to a specific CSAC3 group. I have also created a measure that calculates the turnover TY. However, I now want to have a measure that adds up the turnover of the CSAC03 group and displays it behind the relevant customer number with the associated CSAC03 group. What I keep getting now is that it filters this turnover by customer number each time anyway. Ultimately, I want to calculate further using this turnover per CSAC03 group. But I can't get this to work. Below is an image of the table with columns Customer number, CSAC03 and Turnover MAP TY. This is on a customer number basis. Now I actually want another column next to it with Turnover MAP TY (CSAC03). So all the customer numbers with CSAC03 ‘4PLUS’ should include the total of this CSAC03 group. Furthermore, the code of the measure, perhaps this also has something to do with it. The tables are connected by means of customer keys/customer numbers. If anyone can help, please do, thank you!Solved684Views0likes4CommentsGrouping dates into fortnights
Hi everyone, I'm looking for a solution that will help in grouping dates into fortnights, irregardless of month or year. I'll attach an image to help understand what I am meaning. It wouldn't matter if the column started at calendar start or a specific date. The date table I have is just an invoked funtion in M. Hopefully someone can help, I'm not sure what other information I could provide that would be helpful here.Solved4.2KViews0likes2CommentsDax for overall average of last value in every groups
Hi Guys, I have the following data and I need to display the Average Value of items using only the most recent input for each item and grouped by sortOrder. Date ItemID SortOrder Value 8/1/2020 403 5 1.77 8/1/2020 403 1 1.77 8/1/2020 429 2 6.1 8/1/2020 429 3 11.03 7/1/2020 220 4 34.23 7/1/2020 403 1 1.60 7/1/2020 415 4 7.87 7/1/2020 429 2 4.97 7/1/2020 429 3 33.03 7/1/2020 123 2 18.17 7/1/2020 123 3 27 7/1/2020 123 4 50.03 Expected Results: I am able to get the count of items with Count ItemID (Distinct) Sort Order Average of Value Number Of Items 1 1.77 1 2 12.135 2 3 19.015 2 4 30.71 3 5 1.77 1 Please let me know if more information is needed, I am really stumped. I can create a measure that will return the last value for each group, but then how do i get that measure to average by Sort OrderSolved587Views0likes2CommentsTo group a numeric column containing the difference between 2 dates into same_day, day+1, >1 day
i want to convert a numeric column containing difference between 2 dates like (0,1,2,3..... so on) into 3 groups --> same_day, d+1 and >1 day How to convert the numeric column and categorize them into 3 groups? days between (difference b/w 2 dates)| ---> | 3 categories 0 same day 1 D+1 day 2 >1 day 3 >1 day .... 6 >1 daySolved861Views0likes2CommentsSUM grand total per category
Hello everyone! I am new to Dax and am guessing the solution is right under my nose, but I've exhausted my limited knowledge and need some guidance. I have category (location) and subcategory (centers). A location can have more than one center. My dimension table Unidades uses the subcategory as primary key, since they aren't duplicate. There's also a fact table containing the amount of extra hours (R$) per location (category). When I put the information on a visual it repeats the corresponding overtime for every center according to its location. That's OK. My problem is that I need to add up the grand total of overtime hours, but my measure is adding the overtime for each center and not the location, wich means it adds duplicate values. How do I get the correct sum? Thank you in advance.Solved1.3KViews0likes2CommentsGet the Quantity by the Earliest Date
Hello, I am trying to get the most recent quantity by production week, by Plant (Where it is produced) and by SKU (Item No) depending on the earliest date (version date). Can someone help me with this. I do not mind if it is done in DAX or Power Query. Below is my data view. I have tried groups but when I try to get the quantity it sums all the values up. I dont want that I want what ever was the quantity by the earliest plan version by item. ========================================================== Example of what I want: If I were to sum the quantity of production week of 9/25/2022 I would get like 900,000 (LBS) because it sums it all. I want to get the last value depending on the earliest or closest date of that production week for that Item and plant level. Let me know if I need to clarify anything. Below is an example of why the equal dates do not work:Solved1.5KViews0likes2CommentsAverage a measure's results for a group
I've gotten rusty with DAX and this should be an easy formula, but I'm not asking it in the right way to get the right search. I have a function that calculates how many customers each team member has. I'd like to create a measure that calculates the average customer count for the entire team so the manager can see how close the individual is to the team average. Here's my data: To make it easier to understand, here it is summarized: The measure [Count of Cust ID] is DISTINCTCOUNTNOBLANK('Customers'[Cust ID]) I want to create a measure that will tell me the average customers for the entire team. So the average customer count for Jon Vander's team and Garven Dreis. So the In Garven Dreis's team, the average customer count should be (6+3+3)/3 = 4. I'm trying to create cards that the individual can look at. So if Briggs Darklighter gets to the page and selects his name in the slicer, he'll have a card that tells him his total customers (6) and another card that says average team customer count (4)Solved1.7KViews0likes5CommentsCount items in COLUMN 1, filtered by COLUMN 2, grouped by COLUMN 3 ?
Good day, I’m brand new to Power BI and working on some reports. I’m wondering if someone can advise how to best work out (I assume via a measure) how many unique ID’s exist for a particular DisplayName, filtered on ClassName. In basic terms, using this example table, I want to know how many IDs exist for each specific Organisation. Or in other words, how do I count items in the FIRST COLUMN, filtered on THE SECOND COLUMN and grouped by the THIRD COLUMN? The results – based on this example – should be: Company 1 = 4 Company 2 = 2 Company 3 = 2 I am certain it is not too difficult, and I could do this calculation using SQL, but I’m just trying to wrap my head around Power BI and how calculations work there.1.5KViews0likes3CommentsCalculate Sum Per grouping for Latest date
I have a table that looks loosely like this: Project Name SprintName SprintDate Value ProjectA Back-End 22-Oct 6 ProjectA Front-End 21-Oct 5 ProjectA Front-End 20-Oct 2 ProjectA Back-End 21-Oct 1 ProjectB Front-End 22-Oct 5 I want in a metric (to be more specific, it will be defined as a variable amidst a larger equation), a way to sum the Values (column 4) from only the latest (Column 3) of each Sprint Name (Column 2). Within the report that are filtered by Project Names (Column 1). I've tried filters, and group by's but since the latest date isn't always the same between sprints (one sprint's latest update is on October 22nd, the other is on October 21st), I'm having difficulty coming up with the right dax function. Anyone have any idea?Solved2.3KViews0likes2CommentsApply difference to multiple IDs within a group in DAX
I have a table with daily Consumption totals and a fixed Capacity amount per ID. I want the Consumption value to be subtracted from the "first" ID's Capacity until it is 0, and then subtract the remaining amount from the next ID within the group. Desired output is the Amount Left column below: Date Group ID Capacity Consumption Amount Left 1/1/2019 A 1 10 8 2 1/1/2019 A 2 15 8 15 1/1/2019 A 3 15 8 15 1/2/2019 A 1 10 9 0 1/2/2019 A 2 15 9 4 1/2/2019 A 3 15 9 15 1/3/2019 A 1 10 10 0 1/3/2019 A 2 15 10 0 1/3/2019 A 3 15 10 11.7KViews0likes4Comments