help me please
147 TopicsContar linhas no período entre datas
Olá, poderiam ajudar com essa situação. Tenho essa pequena tabela para exemplificar. Preciso contar as linhas, para isso uso a COUNTA, e até aí tudo certo, agora vem o problema: Imagina que estou executando um filtro no Dashboard com a data do dia 15/04/2022. Preciso que ele conte os itens com os ID's 3, 5, 6. (total de 3) A situação é contar os itens no estoque nessa data (15/04/2022). Então não posso considerar se entrou ou saiu dia 15, preciso considerar o período "ENTRE" das colunas dtatende e dtsaida. Se alguém puder ajudar, serei grato. anexo está o fixeiro2.3KViews0likes3CommentsDAX in building Rolling 4 Week Average
Hi, I need help in building 4 week rolling average for "Net Change in Price and Cost" with below sample data Change in Price, Change in Cost and Net Change in Price and Cost are all 3 measures. Net Change in Price and Cost = Change in Price - Change in Cost I do have separate date table and the above data shows weekly data and my report has Invoice Date as Filter. I need to calculate rolling 4 week average, here the tweak is that for first week start date 12/07 rolling average should be same while for next 12/14 it should (-4.80% + 0.18%)/2 = -2.31% for 12/21 it should be (-4.80% + 0.18% - 0.04%)/3 = -1.55% for 12/28 it should be (-4.80% + 0.18% - 0.04% -0.65%)/4 = -1.33% for 01/04 it should be (0.18% - 0.04% -0.65% +1.03%)/4 = 0.13% as shown below I have created below DAX but its not working as expected Net Change in Price and Cost 4 Wk Rolling Avg = var start_day = MIN('Date'[Week Start Date])-21 var end_day = MAX('Date'[Week Start Date]) return CALCULATE([Net Change in Price and Cost], DATESBETWEEN('Date'[Week Start Date],start_day,end_day), REMOVEFILTERS('Date'[Week Start Date]))/CALCULATE(DISTINCTCOUNT('Date'[Week Start Date]),DATESBETWEEN('Date'[Week Start Date],start_day,end_day),REMOVEFILTERS('Date'[Week Start Date])) Can someone help me on this??Solved7.1KViews0likes5CommentsNeed help quick! Percent On Time measure not working with filters?
I have a whole page dedicated to exploring our products that have shipped late, meaning there is a page filter for [On Time Ship]="False". I also have a measure to calculate the % on time for each product. The formula is: % On Time = CALCULATE(DISTINCTCOUNT(CVD_OTD_FTMS_IV[Reference Number]),CVD_OTD_FTMS_IV[On Time Ship]=true(),REMOVEFILTERS(CVD_OTD_FTMS_IV[On Time Ship]))/CALCULATE(DISTINCTCOUNT(CVD_OTD_FTMS_IV[Reference Number]),REMOVEFILTERS(CVD_OTD_FTMS_IV[On Time Ship])) where [Reference Number] is the unique identifier for someone's ordered item. This measure isn't working the way I want it to and I am not sure why. The count of late items works as expected, but the total count (or denominator in my % on time measure) doesn't show what I expect unless I remove the page filter for [On Time Ship]="False". I don't know why this would be the case since I have a RemoveFilters command in the measure formula?? For example, the product below shows this with the page filter applied: and the same product without the page filter applied: The real total count is 277 for this product. Why is it only 55 when the page filter is applied?? I need help rather quickly, please and thank you!!1.2KViews0likes6CommentsCount number of rows in visual
I have a table visual on my page. I want to know the number of rows that appear in the visual. There are slicers, visual level filters, page level filter, and report level filters, all acting on the table. With NO filters at all the number of visible rows is 342565. With ALL the different filters the number of visible rows is 4. I would like a measure that provides the result 4 or 245 or 342565 or whatever the number rows are visiable in the table visual. result = COUNTROWS(Table) does not work.Solved12KViews0likes7Commentscompare two columns
I have Global POL table, trying to Compare the two column CBL and CBL LOCAL .If both column value same its return true. if values not match and both column blank its return False. i have tired the below measure . True/False = IF ( 'Global POL'[CBL]= 'Global POL'[CBL Local], "True", "False" ) INPUT : ID CBL CBL LOCAL 122 MS14-CA04CAS002 MS14-CA04CAS002 123 MS14-CA04CAS004 MS14-CA04CAS004 124 MS14-CA04CAS004 MS14-CA04CAS002 125 EXPECTED OUTPUT: ID CBL CBL LOCAL TRUE/FALSE 122 MS14-CA04CAS002 MS14-CA04CAS002 TRUE 123 MS14-CA04CAS004 MS14-CA04CAS004 TRUE 124 MS14-CA04CAS004 MS14-CA04CAS002 FALSE 125 FALSE1.7KViews0likes5Commentsblank value replace it from another column value
I have the two table Global Column and local BOM. i have created below measure to get ReferenceBom value. its return the correct vallue . I want replace the blank value in reference bom measure with TYPE OF CHECK column value. How to modify the below measure .please any one help me . Reference BOM-Local = CALCULATE ( FIRSTNONBLANK ( 'local BOMs'[Reference BOM], 0 ), FILTER ( ALL ( 'local BOMs' ), 'local BOMs'[item code] = 'global BOM '[item code] )) global BOM: Item Code Item Type (Product Variant BOM) TYPE OF CHECK FA009644.07 60.T634 NULL FA009644.07 FA009644.07-SHIPPINGCASE-CAS CASE-70 FA009644.07 FA009644.07-BUNDLEPAPER-OUT PAPER-63 local BOMs : Item Code ReferenceBOM FA009644.07 60.T634 Expected Output: Item Code Item Type (Product Variant BOM) ReferenceBom TYPE OF CHECK FA009644.07 60.T634 60.T634 NULL FA009644.07 FA009644.07-SHIPPINGCASE-CAS CASE-70 CASE-70 FA009644.07 FA009644.07-BUNDLEPAPER-OUT PAPER-63 PAPER-63Solved628Views0likes1CommentCompare the value multiple column
trying to compare the multiple columns to find item available and item not avaialbe Itemcode Reference Bom Itemcode Bom Description 1011 FZ FZ TearTap 1022 GH GH Printed 1033 KL item not required - BOM 1044 VB Bundlepaer 1055 CB CB Case lable i am trying to compare if both reference bom and Itemcode bom values are same its return Item Available . If refernce bom and itemcode bom values are not match its return Item not available .' another condition if refence bom and itemcode bom values not match or blank same time description column if word contain item not required its return No issues. Expected output : Itemcode Reference Bom Itemcode Bom Description Status 1011 FZ FZ TearTap Item available 1022 GH GH Printed Item available 1033 KL item not required - BOM No issues 1044 VB Bundlepaer Item Not available 1055 CB CB Case lable Item available . Looking for support .thanks in advance .Solved1.3KViews0likes6CommentsLookup Function not return the value
I have the two table Global parameter and Remark2(local) . i am trying to get BOM value from Remark2(BOM) in Global parameter table using the below Lookup val-Remark 2 - BomText = //CALCULATE ( // FIRSTNONBLANK ( 'Remark2 (local)'[BOM Text (Parameter BOM)], 1 ), //FILTER ( ALL ( 'Remark2 (local)' ), 'Remark2 (local)'[Number] = 'Global Parameters'[Item Code] ) //) CALCULATE(SELECTEDVALUE('Remark2 (local)'[BOM Text (Parameter BOM)]),FILTER(ALLNOBLANKROW('Remark2 (local)'[ItemCode]),'Remark2 (local)'[ItemCode]=='Global Parameters'[Item Code]),ALL('Remark1 (local)')) But Lookup function dosn't work . i have attached power bi file reference Power BI File Global Parameter : ItemCode Rev Outer FA031375.12 11 Thenna FA031375.13 9 Thenna Remark2 (Local) ItemCode Rev BOMTEXT(Parameter BOM) FA031375.12 11 Thenna FA031375.13 9 Thenna Execpted output: ItemCode Rev Outer BOMTEXT FA031375.12 11 Thenna Thenna FA031375.13 9 Thenna Thenna Looking for support . thanks in advance .Solved770Views0likes2CommentsConditions True or False based on the two table
I have a two table one table Global Another one Local . Both table have common value Itemnumber , based on Global Table : Itemnumber Pack 101 102 103 NewHL 104 NewPack Local Table : Itemnumber BOMTEXT 101 102 CH 103 104 NewPack Based on the item i am trying to get true or false result Global Pack Local (BOM text) Output Result Blank Blank / Item code is missing in local input file TRUE Blank Value FALSE Value Blank / Item code is missing in local input file FALSE Value Value TRUE Expect Output: Itemnumber Pack BOMTEXT true/false 101 TRUE 102 CH FALSE 103 NewHL FALSE 104 NewPack NewPck TRUE Looking for support. thanks in advance..Solved1.2KViews0likes4Comments