@please help help
5 TopicsDax Query Not working
CurrentMonthLastYearCount = VAR SelectedMonth = MAX(Query1[SetupDate]) VAR LastYearSameMonthStart = EOMONTH(SelectedMonth, -12) + 1 VAR LastYearSameMonthEnd = EOMONTH(SelectedMonth, -12) RETURN CALCULATE( SUM(Query1[NewCount]), Query1[SetupDate] >= LastYearSameMonthStart && Query1[SetupDate] <= LastYearSameMonthEnd ) I am trying to write a query which shows current month last year in my matrix based on slicer date selection but this query wont return any reuslts and would show up as blankSolved1.1KViews0likes4CommentsDax measure query required of below shared expressions. kindly help me!
Hi Team, Good Afternoon! Kindly help me for DAX measure query of below 2 expressions. 1. Sum([ABC] * [DEF] / 100) 2. Sum((case when [AAA]>1 then [AAA] / 100 else [AAA] end) * [XYZ]) / Sum((case when [BBB]>1 then [BBB] / 100 else [BBB] end) * [XYZ]) I required measures due to need to call this final values in the card visual. please help me.Solved1.4KViews4likes5CommentsHow to find Estimate (PAX PER 15 MINUTES) from Table A to Table B ..
I want fetch value from Table A to Table B for ESTIMATE PER 15 MINUTES. I have attached Sample Data for reference . also attached Excel calcautlions for reference as well Below Excel formula used for calculations =SUMIFS(AY:AY,AV:AV,">="&$BQ28,AV:AV,"<"&$BQ29) AY - STD , AV - ESTIMATE , BQ Column - TIME (Table B) TABLE A : AV AW AX AY --- Excel column STD FLIGH T AIRPORT ESTIMATE 06:00 QF402 SYD 142 06:05 QF765 PER 145 06:45 QF673 ADL CX 07:00 QF410 SYD 132 07:05 QF604 BNE 126 08:00 QF418 SYD 148 08:05 QF1514 CBR 83 08:25 QF1551 HBA 109 08:30 QF2051 DPO 36 TABLE B : BQ BR -- Excel Column TIME- PAX ( Output column in EXCEL) 03:00 03:15 03:30 03:45 04:00 04:15 04:30 04:45 05:00 05:15 05:30 05:45 06:00 287 -- 142+145 6 to 6.15 06:15 06:30 06:45 07:00 258 -- 132+126 7 to 7.15 07:15 07:30 07:45 08:00 231 -- 148+83 8 to 8.15 08:15 08:30 145 --109+36 8.15 to 8.30 Converting this data in to power bi . How to convert this formula in Dax ? looking for support .. thanks in advanceSolved528Views0likes1CommentHelp with complex query
Hi, Thanks in advance. I'm trying to creat a new Incidents column in a table based on some complex conditions. I have 48 vars that calculate the count of department names occur in an affected Dept table but also filter based on the "event cataegory" in the issues table. so far this seems to all work. The problem is I need to get each of these values into the new incidents column in the correct row based on Dept. Name but I can't figure out how. Here is some same code I have so far; Incidents = // the var below calculates the number incidents that affect ALL depts var All_Tot = CALCULATE(COUNT('Impacted_Departments'[Impacted_Departments]),FILTER('Impacted_Departments','Impacted_Departments'[Impacted_Departments]="All")) //the following var was intended as a place holder to be able to add a Dept. total with the All_Total var Dept_Total = All_Total ' //the var belaow gets the # of impacted depts filtered for this particular dept. from an impacted deptments table as well as filtered //for the event_category "Cyber Incident" from an issues table var PSPC= CALCULATE(COUNT('Impacted_Departments'[Impacted_Departments]),FILTER('Impacted_Departments','Impacted_Departments'[Impacted_Departments]="Public Services and Procurement Canada (PSPC)"),FILTER(Issues,Issues[Event_Category_12005]="Cyber Incident")) //The below is another var calculated like the on above filtered for the same event_category but for a different dept var TC= CALCULATE(COUNT('Impacted_Departments'[Impacted_Departments]),FILTER('Impacted_Departments','Impacted_Departments'[Impacted_Departments]="Transport Canada (TC)"),FILTER(Issues,Issues[Event_Category_12005]="Cyber Incident")) RETURN I can return the correct count for either of the 2 vars above but I need to be able to add the All_Total with the total for each dept the insert that number into the correct row of the Incidents column based on Dept name. Keep in mind that this needs to be done 48 times in total. I've tried several conditional statements like switch and IF statements but it errors out on the syntax as I cannot figure out how to do it correctly. Thanks again.685Views0likes2CommentslOOKUP WITH MULTIPLE CONDITIONS
I have two table Global file and local file . both tble have Have common value Itemcode . based on the Itemcode trying to lookup Reference Bom .If the Item is not found in the Reference BOM in local and if the global BOM column āDā Item (Product Variant BOM) contains Alphanumeric values Example FAXXXXX.XX-SHIPPINGCASE-CAS then we checked the Item type in local file conations the "Shipping Case - 70 " then pick the reference bom for the shipping case -70 to use. Item (Product Variant BOM) Item Type FAXXXXX.XX-SHIPPINGCASE-CAS Shipping Case - 70 FAXXXXX.XX-STICKER-PAK Sticker - 45 FAXXXXX.XX-CASELABEL-CAS Shipping Case Label - 71 FAXXXXX.XX-CASETAPE-CAS Shipping Case Tape - 72 Global File ItemCode Item (Product Variant BOM) FA009644.07 FA009644.07-SHIPPINGCASE-CAS FA009644.07 FA009644.07-CASETAPE-CAS FA009645.08 FA009645.08-SHIPPINGCASE-CAS Local File : ItemCode ReferenceBom ItemType FA009644.07 FA009644.07-CASETAPE-CAS Shipping Case Label - 71 FA009645.08 FA009645.08-CASELABEL-CAS Shipping Case Tape - 72 A009645.08 70.X223 Shipping Case - 70 Expected Output: ItemCode Item (Product Variant BOM) ReferenceBom FA009644.07 FA009644.07-SHIPPINGCASE-CAS 70.X223 FA009644.07 FA009644.07-CASETAPE-CAS FA009644.07-CASETAPE-CAS FA009645.08 FA009645.08-SHIPPINGCASE-CAS 70.X223Solved1.2KViews0likes4Comments