average rates
5 TopicsDax help to bring back the max percentage back in a matrix
I am trying to figure out how to display the maximum hit rate for a boxer per location in a matrix. I wrote the dax calcMaxHitRate, but I know that is pulling back the highest rate for a single row of data, while I am looking for the aggregate of the location. For example, Boxer #2 has a hit rate of 95.4% overall, but their best hit rate is Fresno at 96.7%. My challenge is I figured out how to write the display to show the “Top Gym” (text), but how do I write the dax to show me the 96.7% (because Fresno is the best) for Boxer #2, 96.6% for Boxer #1 (because Toledo is the best) and so on? Link to PBIX hereSolved643Views0likes2CommentsGetting the average of the % of column total grouped by categories
Hi, I'm trying to calculate the average between the % of column total, For example, I have this Table1 as example, the table has more columns and other categories, but I will sumarize it, Table1 Date --Categorie1 -Value 20/01/2024 --1 -100 20/01/2024 --1 -200 20/01/2024 --2 -150 21/01/2024 --1 -100 21/01/2024 --2 -150 21/01/2024 --2 -140 22/01/2024 --1 -20 22/01/2024 --1 -30 22/01/2024 --2 -40 From this table, I will sum the colunm "Value" and get the % from the total of each category, grouped by "Date", Date --Categorie1 --% from total 20/01/2024 --1 --66,67% 20/01/2024 --2 --33,33% 21/01/2024 --1 --25,64% 21/01/2024 --2 --74,36% 22/01/2024 --1 --55,56% 22/01/2024 --2 --44,44% Now, I need to calculate the average between each %, grouped by category, my expected result should be: TableExpectedResult Categorie1 --% average 1 --49,29% 2 --50,71% And my strugle here, is that I'm calculating the total sum of the column "Value", and calculation the fraction of the subtotal sum of each category, but it will give me a different result: TableActualResult Categorie1 ---% over total 1 ---48,39% 2 ---51,61% I would like to get my expected result as a measure, so I can work with slicers for different columns and types of categories, I appreciate any kind of help,Solved835Views0likes2CommentsAverage total by day-number of each month for a measured total.
Hi, I have a dataset of starters , with their true start date, and also the date that they paid a deposit. e.g. Start Date Deposit Date Calendar Month Starter 2022-06-02 00:00:00 2022-06-02 05:00:25.7480000 2022-06-01 00:00:00 1 2022-06-02 00:00:00 2022-05-26 09:15:02.4466667 2022-06-01 00:00:00 1 2022-06-02 00:00:00 2022-05-24 08:23:22.0766667 2022-06-01 00:00:00 1 2022-05-26 00:00:00 2022-05-11 14:06:23.9666667 2022-05-01 00:00:00 1 2022-05-26 00:00:00 2022-05-13 12:46:03.2166667 2022-05-01 00:00:00 1 2022-05-26 00:00:00 2022-05-20 09:10:57.9300000 2022-05-01 00:00:00 1 I use the following DAX to calculate, from each date , how many starters are 'known about' in the month from how many deposits are in the system as of that date which also stops data returning from the current date onwards, and accounts for starters on the day into the totals: Starter Total = IF( MAX('dim_DateReference'[Date]) > TODAY(), BLANK(), IF(MAX('dim_DateReference'[Date]) = TODAY(), CALCULATE(COUNT('PBI Starter'[Deposit Date]), ALL('dim_DateReference'[Day Number]), 'PBI Starter'[Deposit Date] <= MAX('dim_DateReference'[Date]) + 1, 'PBI Starter'[Start Date] <= EOMONTH(MAX('dim_DateReference'[Date]),0)) ,CALCULATE(COUNT('PBI Starter'[Deposit Date]), ALL('dim_DateReference'[Day Number]), 'PBI Starter'[Deposit Date] <= MAX('dim_DateReference'[Date]), 'PBI Starter'[Start Date] <= EOMONTH(MAX('dim_DateReference'[Date]),0)) )) I need to calculate, for each day number of the month, on average how many starters are 'known about'. I.E on day one of the month, we have 20 known starters for the month, on average we should know about 24 so we need to improve to meet monthly targets. I also have to plot the average by day against the current month actual. Thanks in advance.848Views0likes6CommentsGet even total average across months
Hi there, I need help with getting an even average across the calendar months counting from the start date adding to 12 months. I have a date table connected to my data table through the "start_date". I just need the average from the total evenly spread across the months starting from the start date for instance, please see result below. Thank you in advance for your help. Data: product total_amt start_date end_date Months a 100 4/1/2020 3/31/2021 12 b 200 1/1/2020 12/31/2020 12 c 300 2/1/2020 1/31/2021 12 Expected Result: product total_amt start_date end_date Months Jan-2020 feb-2020 march-2020 April-2020 May-2020 jun-2020 Jul-2020 Aug-2020 Sept-2020 Oct-2020 Nov-2020 Dec-2020 jan-2021 feb-2021 March-2021 a 100 4/1/2020 3/31/2021 12 8.3 8.3 8.3 8.3 8.3 8.3 8.3 8.3 8.3 8.3 8.3 8.3 b 200 1/1/2020 12/31/2020 12 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 16.7 c 300 2/1/2020 1/31/2021 12 25 25 25 25 25 25 25 25 25 25 25 25Solved784Views0likes2CommentsAverage of Rates
I built out a table in powerBI to give me average of a series or rates. However, the average is wrong. I wrote out the new table like this: summarizecolumns(Sheet1[District],'Sheet1'[Fiscal Year],"Usage Rate",Average('Sheet1'[%Beds])) For example, district only has one hospital with a rate of 81.1% for a specific year. However, when I create the table for with "Usage Rate" by district for that specific year, the table reads 83.5. The table should have a rate fo 81.1 for one hospital in that district for that year . Since that average is wrong, I can safely assume the average is wrong for all other districts with multiple hospitals.949Views0likes4Comments