table visual
15 TopicsSlow DAX formula to calculate # Orders Delayed with adjustment
Hi I have a datamodel with orderlines and goods receipt. I have written a formula to calculate number of unique orders delayed (in Danish # Ordre Forsinket) based on two what if parameters. The parameter 'Leveringstid Regionslager rabat'[Leveringstid Regionslager rabat] is used to adjust the delay with X number of days on those orders there are marked as indkøbsbilagsart ZCD or ZLM. The parameter 'Leveringstid Øvrige rabat'[Leveringstid Øvrige rabat] is used to adjust the delay with X number of days on those orders there are different from indkøbsbilagsart ZCD or ZLM. The data model looks like this and there is 1.4 million rows in the table 'Ordrelinjer' and 2.775 suppliers in the table 'Leverandør': Here is the DAX formula: # Ordre Forsinket = VAR _LeveringstidRegionslagerRabat = SELECTEDVALUE( 'Leveringstid Regionslager rabat'[Leveringstid Regionslager rabat], 0 ) VAR _LeveringstidOevrigeRabat = SELECTEDVALUE( 'Leveringstid Øvrige rabat'[Leveringstid Øvrige rabat], 0 ) RETURN CALCULATE( DISTINCTCOUNT('Ordrelinjer'[Indkøbsordrenummer]), FILTER( ADDCOLUMNS( FILTER( 'Ordrelinjer', 'Ordrelinjer'[Varemodtagelse] = 1 && 'Ordrelinjer'[Afvigelse i dage] > 0 ), "JusteretAfvigelse", 'Ordrelinjer'[Afvigelse i dage] - IF( RELATED('Indkøbsbilagsart'[Indkøbsbilagsart]) IN {"ZCD", "ZLM"}, _LeveringstidRegionslagerRabat, _LeveringstidOevrigeRabat ) ), [JusteretAfvigelse] > 0 ) ) The measure is used in a table visual, but it takes around 33 seconds to refresh the table visual. I need a few more measures in the table, so it will just take longer and longer time to refresh the table. Can I write the DAX formula in a more efficient, clean and performance optimized way? Best regards MortenSolved1.1KViews0likes3CommentsTable Visualization by Customer breakdown by Type and Month
Hello Power BI Community Can anyone please advise me on how to resolve this. My use-case is that we have monthly finance transactional data for each month from Jan to May (e.g. Data source is SQL), bringing in the latest data every month. My Datasets each row consists of Month, Customer, Brand, Sales Price, and Volume and Data model consist of DateTable, where the month has one to many relationships with Customer Table. I manage to create DAX showing MTD & YTD calculation for [Volume], [GM], [ARP £/MT]. Please note [Volume], [GM], [ARP £/MT] these are measures created from monthly finance transactional data. I tried Summarise and Add column DAX nothing seems to be working out, may be i'm made some error. DAX Measures for Volume = Sum('Gross Margin'[Volume]) DAX Measure for ARP£/MT = (DIVIDE([Sale Price],[Volume])) My final output would like to plot the data on a column chart by Type (Volume], ARP £/MT], [GM £/T] the columns would be stacked in each month to give the break-down by the customer by Brand. I want to create two table visualization one by MTD and another Cumulative total, without giving the grand total for ARP £/MT (Average Retail Price) & GM £/ MT, something like this (above mentioned format). Appreciate your help in advance.😊Solved696Views0likes1CommentConditional formatting when values are similar
Hi All, I have a Table Visual that shows my data as shown below where I have business units in one company that conduct business with each other. Account1 belongs to Company1, Account2 belongs to Company2, Account3 belongs to Company3 etc. If all the transactions that occur over a period have been captured in both companies correctly, the sum of Account1 in Company2 and Account2 in Company1 should be equal to zero. I would like to conditionally format the corresponding accounts in each company such that the ones that give a sum of zero turn green and the ones that give a sum that is not equal to zero turn red. What is the best way to go about this? Kindly note the column with company names is also a value in the table. Company Account1 Account2 Account3 Account4 Account5 Account6 Company1 0 -78701725.99 -678225154.9 -490016689.6 0 -1296516724 Company2 84650482.76 0 0 0 0 1843534.90 Company3 678225154.9 0 0 -47471943.94 0 -13427928.55 Company4 490016689.6 0 47471943.94 0 -1217982574 -325274417 Company5 0 0 0 1217982574 0 0 Company6 1296516724 -1701843.62 13427928.55 325274417.1 0 0 Thank you all for your assistance!Solved418Views0likes1CommentAggregated values directly at the last rows of TABLE visuals
Hi, Being a newbie requesting help to get the aggregated values below the "total" row generated from TABLE visual. Unable to use MATRIX visual as i need to show the aggregated values below the total(sample representation as below).Will use the same for Date wise as well as month wise ,year wise slicer. Data Set Sample as below: Also i have created Aggregated Table using Power query which is available as a data set: Also have created measures on values for each measuing point separately which is used for other graphical visuals. Deeply appreciate forums support to meet the objective. Thank you.Solved1.1KViews0likes5CommentsDAX Commands to populate a column from a piece of another column and display the counts
I want to create a visual that can be filter by priority. The priority data, unfortunaley, currently resides in the checklist title field. 1. I need to parse the priority from the checklist title into a column named "Priority". The priority column already exists in the table. 2. Add a visual (table) that displays the number of priority 0, 1, 2 and 3 checklists with percentage that are not started (0), in process (>0 and <100) and number that are complete (100). The raw data looks like this. CHECKLIST TITLE Priority Percentage completed Door inspection of EX.4.1 - Priority 1 100 Door inspection of EX.2.1 - Priority 1 0 Door inspection of SP.2350 - Priority 3 0 Door inspection of EX.33.21 50 Door inspection of 23.393IN - Priority 2 75 Step 1: I need to populate the priority column using the checklist title priority value. If the checklist title does not have a priority, I want to populate the priority field with zero. CHECKLIST TITLE Priority Percentage completed Door inspection of EX.4.1 - Priority 1 1 100 Door inspection of EX.2.1 - Priority 1 1 0 Door inspection of SP.2350 - Priority 3 3 0 Door inspection of EX.33.21 0 50 Door inspection of 23.393IN - Priority 2 2 75 In SQL, I would use an update statement and set the Priority column using a like command. How do I do this in DAX? Step 2: I want to use a visual to see how many priority 0, 1, 2 and 3 checklist have not been started, in-process and completed. The visual would display like this: Priority Not started In-Process Complete 0 0 1 0 1 1 0 1 2 0 1 0 3 1 0 0 I am on day two of trying to learn Power BI and DAX. Any help would be appriecated!Solved805Views0likes2CommentsAggregate measure on two field of a visual table
Hi, I'm trying to replicate this table format on PowerBI table visual: I have created Measure1 as follows: Measure1 = CALCULATE(COUNT('Table'[Request Number])) and I put it on G column that is the value of each Field2 in column F in each month. What I want to do is to calculate column E by the same measure grouped by Field1 (column C) for each month. So for example on the first row of column E we have 11 for Field1=X and Month=January, that is 6+4+1 ofthe first three rows Column G, and so on. I tried the GROUPBY or ALLEXCEPT functions by Month and Field1 but it didn't work. How can I build the formula or use particular view for the visual to aggregate the column E by month and Field1?459Views0likes1CommentReturn specific values "Answer" and "Score" where related ID is the same
Hi Power BI Community, I am new to this site and ne to Power BI as well 🙂 I hope you can help me out with the following task: I have made a draft of a table in Power BI that keeps track of customer satisfaction surveys. Each customer survey has an ID (Case ID column) and 3 questions. Only the first question is mandatory to answer. There is a unique Event ID (Event ID column) for each question a customer has answered. The Question columns contains 3 different values corresponding to the 3 questions. The answer column contains the value "Yes", "No", null and a string containing comments from customers. Case ID Event ID Question Answer Score Case 1 Event 001 Are you satisfied? (Yes/No) Yes Case 1 Event 002 How satisfied from 1 to 5? 3 Case 1 Event 003 Any comments? "It was OK" Case 2 Event 004 Are you satisfied? (Yes/No) Yes Case 2 Event 005 How satisfied from 1 to 5? 5 Case 3 Event 006 Are you satisfied? (Yes/No) Yes Case 3 Event 007 How satisfied from 1 to 5? 5 Case 3 Event 008 Any comments? "It was great!" Case 4 Event 009 Are you satisfied? (Yes/No) No Case 5 Event 010 Are you satisfied? (Yes/No) Yes Case 5 Event 011 How satisfied from 1 to 5? 5 Case 5 Event 012 Any comments? "You are the best!" Case 6 Event 013 Are you satisfied? (Yes/No) Yes Case 7 Event 014 Are you satisfied? (Yes/No) No Case 7 Event 015 How satisfied from 1 to 5? 2 I want to return a table containing a column with each single Case ID (only showing up once) alongside the related Score, where Score = 5. Furthermore, I want to return a column with Answers, where Score = 5 and where Answer is not blank, yes or no. Something like this: Case ID Answer Score Case 3 "It was great!" 5 Case 5 "You are the best!" 5 I have tried filtering the visual which did not work out for me. And I don't know how to fix it with a measuer or calculated column. Any advice? Thanks a lot in advance!Solved1KViews0likes4CommentsTable matrix custom representation - using any possible DAX queries
Hi All, I have the below source table as my input which is a table matrix with a set of 5 coulmns namely :- Name ,city, school,Age,type etc. Input source table: Name city school Age type A London ABC 12 Permanent B Berlin ADE 10 Temporary Output expected: Name city A London school ABC Age 12 type Permanent Name city B Berlin school ADE Age 10 type Temporary Is it possible to get the expected output in the given format above .Each row should breakdown into row and column[contianing the row values].Is it possible through any DAX assuming the row headers and column headers wont change anytime in future and no new enteries will be added. Kind regards Sameer1.2KViews0likes4CommentsMeasures for table visual - select value from table visual - ignore grouping of table visual
Hello everyone, I'm facing a problem, that I can't solve. You can find a sample-file by following the link to my OneDrive (in the file you can find a description, too): https://1drv.ms/f/s!Aosv7ECDrc5dtzw5Im5Azt0L0cVL 1) I have make a ranking and display this in a table visual. Now I want to select and display the first place of this ranking for each region in a other table visual. 2) I have another measure. I want to display it in the same table visual as "1)". But this time it shouldn't filtered/grouped by the regions. It should show one value (the "total" average of revenue) over all regions (-> so it shows the average of revenue of one country - not of all individual regions) Thank you for your help! Kind regards MichaelSolved945Views0likes3Comments