dax

  1. S

    Excel DAX Pivot table question

    Hi, I have many tables and I would like to find out the best way to count the number of units sold that meet a criteria. In tblInvMaster I have a fields called PROMO CODE. I want to sum up the number of units from tblSALE that have a PROMO CODE. So I can use the related function in DAX...
  2. B

    SUMX Problem - summarising values

    I'm working with some data Where I have a branch, clients in a branch and products with that client. I've managed to get the values in a pivot from measures at product level provided I filter on a client. A soon as clear the client filter all the values become incorrect. Ideally I want to...
  3. D

    MAX value best practice

    Hi When trying to find the maximum value with a filter condition is there any difference between these two methods and which if either is regarded as better; ; MAX( Table1[Units] ) Then, CALCULATE([MaxU],(FILTER(ALL(Table1[Item]) ,Table1[Item]= "A") ) or...
  4. D

    DAX cumulative total Column using Not using 'earlier'

    Hi, Does anyone know how to do a cumulative total for a column not measure and not using "EARLIER', so the same result as CALCULATE([Tunits], FILTER(ALL(Table13),Table13[Date] <=EARLIER(Table13[Date]))) I've tried using CALCULATE( MAX( Table[Date] )) ...
  5. P

    Help converting VBA into Power Query

    Hey guys! I use this VBA since 2018, but now I want to use it in Power BI. Can someone please help me converting this from VBA to DAX, so I can use it? The VBA calculate the period between the two dates, only considering working hours (8h30-18h30), working days, discarding weekends and holidays...
  6. M

    Dynamic ranking but always including certain a product

    Hi, I've managed to make a dynamic ranking with a custom TopN filter, output is a table with brands ranked by TopN filter and the rest is always summed up by a total under "Others". This is because there are several subcategories. So within a subcategory the dynamic filter is working on...
  7. S

    Dashboard Bookmark and Dax Help

    Hi I am building a dashboard for survey data and for reasons I am not quite sure I am running into a couple of problems. I have five questions that I want to focus on. My dashboard looks like so: 1) I wrapped the text box at the top with a blank box that i removed the borders. When I...
  8. A

    Get Maximum of Value Field in Pivot Table

    Hi All, I am trying to do the following, please let me know if this is possible: I have a "Value Field" called Count of Value_Proficiency which simply counts the occurrence of each Row Label I would like to create a new "Measure" having Max of Count of Value_Proficiency repeated for all Row...
  9. R

    DAX Measure to Countif on Measure Result in condition

    I am struggling with DAX Measure to Countif on Measure Result in condition. Count of Items whose result of Measure4 = 0 for the selected Sales Centre and Month (YearMonthNumber). I am trying with this measure =CALCULATE (COUNTA (Data [Item Name]), FILTER(ALL('Data'), [QualificationUpto20] = 0))...
  10. D

    DAX Measure used in Formula produces blank but not when variable

    This is cross posted with Excel Forum; DAX Using a Measure in formula produces a blank and can't see why My question relates to the following formula to get the previous value from non consec dates; first I have a filtered down table. Filtered Dates := MAXX ( FILTER ( ALL (...
  11. B

    Calculating Storage Occupancy from History of Multiple Item Stages - Measure or Calculated Column?

    Hello Everyone, I have this dataset (click here) of items with time stamped stages. Some stages mean the item is occupying space in the storage. The other stages mean it's not. I need to use Power Pivot 2016 (not Power BI) to produce the chart below for avg. storage occupancy over time for the...
  12. A

    Incremental subtract measure based on ranking

    I'm trying to create a measure which will incrementally subtract demand from supply based on rank. The ranks are already assigned and exist in the data (e.g., 0-100). Is there a way to do that in Power BI? My target end state is a matrix visual that shows each product and it's rank on the...
  13. S

    Looking to pull next week days ONLY in a Excel DAX column

    Hi, I'm trying to create a Excel DAX calculated column for the dates next week only. This works for THIS week only. =if( year(dCalendar[wtd])=year(today())&&weeknum(dCalendar[wtd])=WEEKNUM(today()-1)&& (dCalendar[wtd])<=TODAY()-1 ,"CURRENT WEEK","OTHER") But this doesn't for next week. =if(...
  14. N

    Change value if yearend date

    My organization has a report of the cumulative net income for each quarter for each year. I need produce a report in Power BI that pulls the quarterly net income rather than the cumulative net income. I currently have three DAX measures, one that pulls the current cumulative net income, a...
  15. D

    DAX Date tables in power pivot and power bi

    Hi, Can someone tell me if Powe pivot and Power Bi work differently in relation to date / Calendar Tables, So if I have a meaure ; SUM(TslaesTable[Sales} ) and I use this in a pivot table which is just has Dates in the Rows, if i use the dates from the sales table I get what I would...
  16. D

    DAX calculatetable

    Hi I've created a running total column by date and criteria, first I used ALLEXCEPT , but then ALL and VALUES so; RTColumn := CALCULATE ( SUM ( Table1[Sales] ), FILTER ( ALL ( Table1 ), Table1[Date] <= EARLIER ( Table1[Date] ) ), CALCULATETABLE ( VALUES ( Table1[Agency] ) ) )...
  17. D

    DAX running total measures best practice

    Hello, I was looking at different ways of dealing with a running total and I wondered if anyone had any advice on benefits of problems with different methods with regards to efficiency on large data sets which I don't deal with but it would be good to know. RTM := VAR mdate = MAX (...
  18. G

    Headcount Using Hire Date & Term Date Power Query

    Every week I run a report from our HRIS and drop a CSV file into a folder that is connected to Excel via PQ. I use the cleaned-up data to "feed" pivot tables and use them in a dashboard. I have no problem getting a current headcount, but I would like to be able to get a headcount for each month...
  19. D

    DATEDIFF adding day of year number power bi

    Hi, I'm trying to add the day of the year number in a power bi calendar , and keep seeing the following; DATEDIFF (STARTOFYEAR ('Date' [Date]),'Date' [Date],DAY)+1 I have tried using this and just get errors, "Day of Month", DAY([Date]) , "Day of Week", WEEKDAY([Date] ,2) ...
  20. D

    DAX Variables used in formula

    Hi, I have a question re variables, which i tend to use as it makes it easier to understand but in the formula I have for a running total in a calculated column I have to use a var or it won't work; VAR aitem = AllandValues[item] RETURN CALCULATE ( [avsales], FILTER (...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top