dax

  1. M

    How do I create a series of measures for each day of the week with multiple filters?

    I would like to create a series of measures that shows my current week's sales by day. Example: 1 measure shows Sunday's sales, 1 measure shows Monday's sales, etc. In order to identify the current week, I have added a field to my date table called 'Week Rank' in combination with the max...
  2. C

    Getting latest value from a grouping in Power BI measure

    I am attempting to create a Power BI measure that computes the number of active employees and that can be sliced by date, based on a table that is a running list of employment changes. As a sample data set: Employee ID Change Date Status Title Change Reason A 1/1/2021 Active Director of...
  3. C

    DAX: table variables that can be shared between measures?

    I am analyzing data about employee headcount and I am looking for a way to simplify my formulas. My end goal is to be able to have measures that give me headcount on a given date, how many employees were gained between the given date and the previous month, how many were lost between the given...
  4. V

    I need to display Average of a calculated column on basis of month wise data

    Hi Team, So, I have a power Bi task at hand where I have created a dashboard . Issue is I need to display average of a calculated column by month for eg; I have a column with name CSM readiness CSM readiness = csm1 + csm 2...
  5. Z

    Calculate the attrition for new hired (<= 6 months of hired date)

    Hi, I need to calculate the voluntary attrition for employees who left the company within less than or equal to 6 months of their hire date. How would I accomplish this? I have below fields and tables: - Attrition Table that has below fields: - Employee ID - Hire Date - Term Date - Term...
  6. S

    Change background color using DAX measure in conditional formatting

    Hi All, I have a table below for which I need to change the background color for the values using DAX measure in conditional formatting. I have also added the output image with the conditions that I want to apply in the measure. I have already tried the measures that are already mentioned in the...
  7. A

    Using Dax to check if grouped rows match

    I have data in the format below (minus the far right column) EmailAddress CourseTitle Complete AllComplete 1@1.com Course1 true false 1@1.com Course2 true false 1@1.com Course3 false false 2@1.com Course1 true true 2@1.com Course2 true true 2@1.com Course3 true true Using DAX...
  8. D

    DAX measure running total by month

    Hello all, I know there's a lot of stuff out there about CALCULATE, but I wonder if someone can point me in the right direction, I've created a running total by each month using DAX as a calculated column. I've also got the same as a measure , the difference is the definition of the variable...
  9. D

    Running total in DAX power pivot by category

    Hello all, I want to create a running total by product category in power query; so far I've come up with the following; <VAR prod = TESTA[Product] RETURN CALCULATE(SUM(TESTA[Qty]),FILTER(TESTA,TESTA[Index]<= EARLIER(TESTA[Index]) && TESTA[Product] = prod))> variable name pod ...
  10. P

    DAX Formula – Dynamic count calcs for left outer join

    Hi All and welcome to the forum, I’m looking for help in writing the formula for the below business case. First, let me give you an overview of the dataset and what I need to calculate. Data Data set is a table that is a result of appending hundreds of reports. There are two relevant...
  11. M

    Amounts max period from last year

    Hi, I'm using the below code to retrieve amounts on the last posting date. LastPeriodSelected = CALCULATE ([FinanceAmountMeasure], FILTER ('Date', 'Date'[Date] = max('Consolidated Accounts'[PostingDate]))) I have a filter on the visual on the current year and selected months. My question...
  12. B

    Report Inventory needs to support customer order with flow through assembly tree when in excess of parent part stock available.

    I created a report in Excel using PowerPivot that shows how many of each part number are needed each day to fulfill customer orders. To do this I pulled 2 tables from our ERP database. (The data below is simplified for this example but should convey what data is available.) 1st: The part table...
  13. J

    Optimising DAX Measures

    I'm looking to optimise the following measures with the aim of creating a pivot table containing 'MyValue' and a grand average 2 point moving range centre line (the AverageMovingRange measure below). Because various other fields can be added as filters, as well as ID being grouped by fields...
  14. G

    Cumulative sum with conditional offset?

    Hello, I am trying to create a column in PowerBI that takes the cumulative sum of a table column of numbers, *but*, if in any row the value of that sum is exceeded by a number in a secondary column, the cumulation is replaced with that secondary number. The cumulative sum would then carry on...
  15. P

    Calculating days of supply using DAX...2

    Hi all Regard to Calculating days of supply using DAX... thread I would like to ask you for help. I need to calculate Days of Cover. Data structure is following: WeekDate, Product, ClosingStock, Demand. I tried to use the code from previous thread but I hit on problems. First one is on the line...
  16. O

    (Power?) pivot: filter or split comma separated data in one cell to multiple columns in (power?) pivot table (by measure?)

    Í'll try to explain with data table/power pivot. I want to split the intervals (without ", ") in the column SectionS (plural!) giving each interval it's own column (with corresponding section as name) into a (power) pivot table. I guess using DAX is the only way... but how? I'm no Ferrari ;)...
  17. M

    Doing SUMIFS in Power BI

    Hello All, I have been trying to replicate excel Sumifs in Power BI without much luck. I have below excel data and a summarised table. The Table on the right in excel is essentially doing sumifs based on filter selection. For e.g. Sum of Volume for Customer =Cust 1, Product=Hat 1, Plan =A...
  18. Jon von der Heyden

    DAX - incorrect count when applying filters on dashboard

    Hi I have a table, key fields being: retailer_name order_ref_id order_date payer_status I have the following DAX measure: Perc Orders By Payer Status by Retailer = var SelectedOrders = COUNT(conversion_loan_collection_order[order_ref_id]) var SelectedRetailerOrders =...
  19. M

    Applying time period to a DAX formula?

    Hi there, I am currently using the following two measures with a power pivot table: Sales Count =DISTINCTCOUNT(SalesHistory[Transaction ID]) Sales Frequency (return a “2” if there are at least 3 sales instances, “1” if instances of sales is between 1-3, “0” if no sale) =if([Sales...
  20. C

    DAX to track program expectations - weird relationships

    I am building a dashboard to show progress of employees through a long-term training program. I am trying to create a measure to track progress against time-based expectations, and I'm struggling with the DAX logic. The model I have is a variation on a star schema. The central table is a record...

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