commands and tips
12 TopicsMeasure not filtering as per time Calculation
Hi Community, In the attached pbix file, Im facing issue with Problem -1 in atached pbix. Issue : Im trying to use colesce function in the base measure 'vall' but due to that the date filter context is getting removed and showing data for all dates. But when i dont use colesece it works fine. Thanks in advance!Solved1.1KViews0likes5CommentsHow to lookup and compare data in the same table
Hello, I need help with adding a new column. Is there a way to lookup values/compare data in the same table? I have schedule data that will be added to the table for each month. Most values in the ID column will repeat each month, and there will be some IDs that are removed or added. I am trying to add a new column to the same table that shows the status of the previous month. Columns Status and Schedule Status are calculated columns with Dax. Any help to put me in the right directions is useful. ID Status Schedule Status Previous Status ABC On time Previous DEF Not on Time Previous GHI Future Previous JKL On time Previous ABC On time Current On time DEF On time Current Not on Time GHI On time Current Future JKL On time Current On time MNO On time Current AddedSolved800Views0likes2CommentsMeasure not affected by table rows
Hello, everyone! I'm doing a measure that need to show me a value based on the total of a count. Depending on the total, it's going to show me diferent values, like: 1 to 24 = 47,00 25 to 30 = 55,00 31 to 40 = 60,00 More than 41 = 65,00 When I use this measure on a card it works perfectly, it shows me the exactly value I need, like the image below: But, when I try to use this on a TABLE it breaks the value per row. On the total it show correctly how the value is supposed to be, but on the rows it shows the minimum value. There's a way to make the measure show me the value in the total cell on the rows? The measure I using is this one: VALOR_COMISSAO = VAR qtd_benef = CALCULATE( DISTINCTCOUNT('power_bi gestao_contratos'[codigo_pessoa]), FILTER('power_bi gestao_contratos','power_bi gestao_contratos'[indica_plano_ant] = "N"), 'power_bi gestao_contratos','power_bi gestao_contratos'[SITUAÇÃO FATURA] = "PAGO", KEEPFILTERS('Tb_Calendário'[Competencia]), REMOVEFILTERS('Tb_Calendário'[Ano])) VAR valor_comissao = CALCULATE( MAXA('power_bi comercial_val_comiss_consult'[valor]), FILTER('power_bi comercial_val_comiss_consult', 'power_bi comercial_val_comiss_consult'[vidas_inicial] <= qtd_benef), GROUPBY('power_bi gestao_contratos','power_bi gestao_contratos'[nome_vendedor]), KEEPFILTERS('Tb_Calendário'[Competencia]), REMOVEFILTERS('Tb_Calendário'[Ano])) RETURN valor_comissao Basically this measure has two steps separated in two variables: qtd_benef: this measure count the values that will be used in the next step. valor_comissao: the result of "qtd_benef" is the value used on the FILTER command to get the value of MAXA. the QTD_BENEF it the (34) and VALOR_COMISSAO is (60) that appears on the first image. Thanks in advance, Daniel.509Views0likes1CommentCategory status based on sub category
Hi All, I have a table like below. I need to show the overall status of the category based on the sub- category. 1. If all the sub-categories are completed then Category is completed. 2. If each sub category is having 3 different status, category status should be Risk. 3. If sub categories having same status more than the other status, then category should be the Most status. For Pen- Risk Pencil- Completed Marker- In progress. TIA. Category Sub-category Status Pen Type 1 Risk Pen Type 2 Completed Pen Type 3 In-progress Pencil Type 5 Completed Pencil Type7 Completed Marker Type 8 In-progress Marker Type15 In-progress Marker Type 16 RiskSolved534Views0likes1Commentcount the number of applications
i have the following data order stauts 216 submited 216 accepted 217 submited 217 resumited 217 accepted i need to count the number of orders that got accepted without being reaplied so in this case it should give one order i wrote the following dax but it is NOT helping AcceptedOrdersWithoutResubmit = CALCULATE( COUNTROWS('Table'), FILTER( 'Table', 'Table'[stauts] = "accepted" && NOT ( CALCULATE( COUNTROWS('Table'), FILTER( 'Table', 'Table'[order] = EARLIER('Table'[order]) && 'Table'[stauts] = "resumited" ) ) > 0 ) ) ) please help and thank youSolved1.7KViews0likes6CommentsHello All, How to compare Date & Time using the text field. Dax or Measure?
Hi Everyone, Could someone please help me out with DAX for below as I am stuck in middle. Below is my sample data Resource Name DIS_scheduled Scan Time TEST_CONCURRENT_SCANS_ORA_SM_8 SM_PROFILING_PRD 12/26/2023 14:30 TEST_CONCURRENT_SCANS_ORA_SM_7 SM_PROFILING_PRD 12/26/2023 14:30 TEST_CONCURRENT_SCANS_ORA_SM_6 SM_PROFILING_PRD 12/26/2023 14:30 TEST_CONCURRENT_SCANS_ORA_SM_5 SM_PROFILING_PRD 12/26/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_4 SM_PROFILING_PRD 12/26/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_3 SM_PROFILING_PRD 12/26/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_2 SM_PROFILING_PRD 12/26/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_1 SM_PROFILING_PRD 12/26/2023 13:00 TEST_CONCURRENT_SCANS_ORA_MD_5 MD_PROFILING_PRD 12/27/2023 12:00 TEST_CONCURRENT_SCANS_ORA_MD_4 MD_PROFILING_PRD 12/27/2023 12:00 TEST_CONCURRENT_SCANS_ORA_MD_3 MD_PROFILING_PRD 12/27/2023 13:30 TEST_CONCURRENT_SCANS_ORA_MD_2 MD_PROFILING_PRD 12/27/2023 15:00 TEST_CONCURRENT_SCANS_ORA_MD_1 MD_PROFILING_PRD 12/27/2023 11:00 TEST_CONCURRENT_SCANS_ORA_LG_3 LG_PROFILING_PRD 12/28/2023 13:00 TEST_CONCURRENT_SCANS_ORA_LG_2 LG_PROFILING_PRD 12/28/2023 11:00 TEST_CONCURRENT_SCANS_ORA_LG_1 LG_PROFILING_PRD 12/28/2023 9:00 TEST_CONCURRENT_SCANS_ORA_XL_2 XL_PROFILING_PRD 12/29/2023 10:00 TEST_CONCURRENT_SCANS_ORA_XL_1 XL_PROFILING_PRD 12/30/2023 7:00 TEST_CONCURRENT_SCANS_ORA_SM_8 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_7 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_6 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_5 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_4 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_3 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_2 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_SM_1 SM_PROFILING_PRD 12/31/2023 13:00 TEST_CONCURRENT_SCANS_ORA_MD_5 MD_PROFILING_PRD 12/31/2023 11:00 TEST_CONCURRENT_SCANS_ORA_MD_4 MD_PROFILING_PRD 12/31/2023 11:00 TEST_CONCURRENT_SCANS_ORA_MD_3 MD_PROFILING_PRD 12/31/2023 11:00 TEST_CONCURRENT_SCANS_ORA_MD_2 MD_PROFILING_PRD 12/31/2023 11:00 TEST_CONCURRENT_SCANS_ORA_MD_1 MD_PROFILING_PRD 12/31/2023 11:00 TEST_CONCURRENT_SCANS_ORA_LG_3 LG_PROFILING_PRD 12/31/2023 9:00 TEST_CONCURRENT_SCANS_ORA_LG_2 LG_PROFILING_PRD 12/31/2023 9:00 TEST_CONCURRENT_SCANS_ORA_LG_1 LG_PROFILING_PRD 12/31/2023 9:00 TEST_CONCURRENT_SCANS_ORA_XL_2 XL_PROFILING_PRD 12/31/2023 7:00 TEST_CONCURRENT_SCANS_ORA_XL_1 XL_PROFILING_PRD 12/31/2023 7:00 so here >> any resource should not be scheduled(i.e. Scan_time column above) if there are resources already scheduled upto 2 hrs before for DIS_scheduled = "SM_PROFILING_PRD" >> any resource should not be scheduled if there are resources already scheduled upto 5 hrs before for DIS_scheduled = "MD_PROFILING_PRD" >> any resource should not be scheduled if there are resources already scheduled upto 10 hrs before for DIS_scheduled = "LG_PROFILING_PRD" >> any resource should not be scheduled if there are resources already scheduled upto 24 hrs before for DIS_scheduled = "XL_PROFILING_PRD" So for Example, For DIS_scheduled = "SM_PROFILING_PRD", if 2 Resources have Scan_time on 12/31/2023 14:30 but there are already resources having Scan_time at 12/31/2023 13:00 which is an issue as no resource should be scheduled 2hrs before I have to use Scan_Time column to check above conditions and create new column with output as "Issue" or "No issue" Please let me know if more data is required. ThanksSolved1.6KViews0likes6CommentsGroup Ranking in Measure, and Bar chart
Hi, I have written dax for group ranking. It is working fine in table. The Ranking is dynamic. If I unselect a value from slicer (carrier name), the ranking gets updated for the selected values. Ranking = RANKX( FILTER( ALLSELECTED('Table'), 'Table'[LaneID] = MAX('Table'[LaneID])), [sum],, ASC, Dense) This is the output of the table It does not work the moment, I remove LaneID. How to make it work even, I do not keep Lane ID in table ?Solved4KViews0likes17CommentsNeed Last Week data using DAX
Hi , I have a data of showing day wise incidents (ticket). We are maintaining this things in excel sheet. My Requirement is to show the last weeks data (not last 7 days). Can someone help how do we write the formula to get the last week data. Day begins from Mon to Sun. Thanks, SudharshanSolved831Views0likes2CommentsFinding the difference between the time from first and last occurrence
Hello! I am trying to find the difference in unixtime from when a sensor was first registered to when it was registered again. I color coated the chart to empashize the sensor type. The "Time since last reading" column is the one that I am attempting to create and the one to the right of it has the equations. I am having issue because the pH sensor has 3 readings at different depths, but I only take the difference when the three readings appear again. Opposingly, I only recieve one readign for the ambient temp, water temp, and oxygen level. Any suggestions?Solved947Views0likes4Comments