table visual
30 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.😊Solved694Views0likes1CommentAdd conditional formatting or action customization for column headers in matrix and table visuals
I would like to suggest adding the option to conditional format column headers in matrix and table visuals as hyperlinks to enable quickly navigating to a web URL or a page within the report. For example, I have a report page that acts as a heat map with various columns show the health of each client (rows) in each of the various categories (columns). Subsequent pages in the report provide more detailed metrics and information for each of the corresponding columns on the heat map. I want to make it so the user can click the heat map column header and be redirected to the corresponding details page in the report. This is one of many instances where being able to conditional format a column header with an action or hyperlink would be helpful. For the above example, I do have a workaround in place, using "invivisible" action buttons, however these do not move with the headers in the event we need to scroll to the left or right in the matrix or table visual so I am limited to only showing the number of columns that can fit in the view without scrolling left to right.1.3KViews2likes0CommentsConditional 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!Solved415Views0likes1CommentAggregated 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.1KViews0likes5CommentsCreating excel like cell-based dropdown in Power BI Table
Hi, I am new to Power BI and was looking for ways to create a status update table in Power BI to track progress of certain tasks. The table in excel would look like this I want to create a similar table where I would be able to update the status in the visuals itself. Is that possible to do in Power BI? Thanks in advance for any help!DAX 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?455Views0likes1Comment