countifs
9 TopicsDAX columns for date when sales target was reached by staff and number of days worked reach target
I woulkd be so greatful, if one of the DAX experts can help with a DAX formula for 2 columns I want to create. I have 2 tables. table 1 is called 'Staff' with 4 staff (A to D) in colum Staff, there are columns for Items Sold, Days Worked, Days To Meet Target and Date Target Met. The related table is called 'Rota' has columns Staff, Items Sold and Date Worked. I need a DAX to formula for 3 additional columns in Staff table: Days Worked, this will count number of days each staff has worked. Days To Meet Target, work out the number of days staff worked to meet the target of 6 sales, ignoring days after target reached. Date Target Met, this will find the date when staff reached their target of 6 sales, ignoring days after target was reached. In the Staff Table below, Staff 'C' shows them meeting target of 6 after working 1 day, they met thier target on 2nd Feb, they worked 2 days in total. Staff 'D' shows them meeting target of 6 after working 2 days, the 2nd day they worked was 4th April, they worked 3 days in total. Staff Staff Items Sold Days Worked Days To Meet Target Date Target Met A 3 2 B 2 1 C 9 2 1 02-Feb-20 D 7 3 2 04-Apr-20 Rota Staff Items Sold Date Worked A 1 13-Jan-20 C 6 02-Feb-20 B 2 14-Feb-20 D 3 18-Feb-20 A 2 21-Mar-20 D 3 04-Apr-20 C 3 05-Jun-20 D 1 01-Jul-20Solved1.3KViews0likes3CommentsCOUNTIFS with Multiple Statements referring to Current Row value
For each row, I want to get a unique following number per Focus Tank. In Excel I accomplisted this by a COUNTIFS statement: COUNTIFS if: Column [Focus Tank] matches the [Focus Tank] value of the current row. Column [NewStart] is less than or equal to the [NewStart] value of the current row. Works a charm. In PowerBI I came up with this, but it is not functioning because I don't know how to make code "VALUE(45907.74585)" dynamic. Meaning, this value should get the value from it's current ROW, and not be hardcoded. Anyone know what I'm missing here? Thanks!Solved885Views0likes4CommentsForm Completion by Week
Morning All, I'm after some help please...Our Engineers are required to complete a weekly H&S check of their vehicles (brakes, battery, tyres etc). They complete this via our own mobile app and the data is pushed into a Sharepoint list which I'm about to connect to PowerBI. The Ops Director has asked for a simple report that identifies of all of the Engineers, who completed the weekly check and who didn't? So essentially I need DAX/visual/whatever to identify a RAG green or red rating on complete/incomplete forms by week, please? Many thanks in advance!Solved725Views0likes1CommentCOUNTIFS in DAX
Can anybody please help with a DAX question. I have a report in Excel that counts the items that make up an invoice. I have atached a screenshot with the Excel formula highlighted. I am trying to recreate this report in Power BI but struggling with the DAX for this measure.2KViews0likes11CommentsRepurchase counter
Hello guys, this is my first post and I need help. I have a huge database with the columns: day, state, costumer code, SKU, origin, state and month. I need to count how many times a costumer made a purchase in a month, but I need to mark when this code appeared that month. If it is the first time, mark with 1, the second with a 2, etc. I can do that on Excel: =COUNTIFS($D$2:D10087;D10087;$E$2:E10087;E10087) where D is the Costumer Code and E is the Month. (I do that every line from D2 to D10087) I tried that on Power BI, creating a new table: Calc_Repurchase = SUMMARIZE(db, db[Costumer Code], db[Month], "Count", DISTINCTCOUNT(db[Day])) It works, but it only shows the total number of times the customer made the purchase in a month. And isn't what I want. I created a new column at the original table using Column = COUNTX(FILTER(db, db[Day] <= EARLIER(db[Day])), db[Costumer Code]), but returned a message error tha my computer doesn´t have enough memory. Regards, Rafael1.2KViews0likes3CommentsCountifs Functiion (Dynamic by every row)
1. I want to count "every date" by "each country" when "Confirmed column is nonblank or >0". In excel file we can do it by countifs function. What would be the Dax formula for this solution? Date Confirmed Recovered Deaths Day of Year Province Country Corona Days (Expected Result) 22-01-20 5 Bangladesh 1 22-01-20 Sweden 0 22-01-20 US 0 22-01-20 UK 0 22-01-20 417 India 1 22-01-20 694 Italy 1 22-01-20 411 Denmark 1 23-01-20 229 Norway 1 23-01-20 146 UAE 1 23-01-20 265 Bangladesh 2 23-01-20 388 Mali 1 23-01-20 358 Italy 2 24-01-20 599 UK 2 24-01-20 371 Bangladesh 3 24-01-20 776 Sweden 1Solved2.3KViews0likes9CommentsCOUNTIFS in power bi
Hello everyone, I'm creating a table on my Power BI and I added the following column: Surveys = CALCULATE(COUNT(CSAT[Score]),FILTER(CSAT,CSAT[Employee] = Quartiles[Employee] && CSAT[Date] >= [Start Date Selected] && CSAT[Date] <= [End Date Selected])) I'm looking to create like an excel COUNTIFS with the name of the employee and the surveys they have received in between two dates selected in a filter. However, it's not working the way I want to since its giving me the surveys in any period of time of the employees that received surveys between the selected dates. Meaning it's only filtering the employees between those dates but not the surveys. Is there any other way to reach the result I'm looking for?650Views0likes1CommentHow to count instance changes in a column YoY
Hello I have this dataset: ID PERSON CARD TYPE SUBSCRIPTION YEAR A FREE 2018 A PREMIUM 2019 B PREMIUM 2018 B PRO 2019 C FREE 2018 C PRO 2019 D FREE 2018 D PRO 2018 E FREE 2018 E PRO 2018 I would like to know for each year (from 2018 to 2019): how many FREE subscribers have changed their plan to PRO subscribers how many FREE subscribers have not changed their plan how many FREE subscribers have changed their plan to PREMIUM subscribers I need of course the other combinations, too. Please note that someone can change the plan during the same year (as for D and E id person) Can you help me? Thank you so much. Greg_Deckler amitchandak Mariusz1.2KViews0likes6CommentsVlookUp and CountIF DAX
Hi all, New to Power BI and facing some difficulties trying to replicate a vlookup result in Excel to Power BI. Column A Column B Column C Column D Description1 2 Description1 2 Description1 2 Basically Column C /Formula=COUNTIF(B:B,B5) is doing a count if of Description1 in Column B which I am ble to replicate in PowerBI However in Column D/ Formula = VLOOKUP(A4,B:C,2,FALSE) , I am doing a simple VLOOKUP of Decription1 from column A in column B and extracting out Column C values. I am unable to replicate this in PowerBI. Any support or advice would be mch appreciated, Thank you!1.1KViews0likes0Comments