dax

dax

1079 bookmarks
Custom sorting
Re: DAX Comparison Measure
Re: DAX Comparison Measure
Try this: [SubCategory Sales] = VAR CurrentSubCategory = VALUES ( ProductTable[Product Subcategory] ) RETURN CALCULATE ( SUM ( Sales[Sales] ), ALL ( ProductTable[Product Name] ), ProductTable[Product Subcategory] = CurrentSubcategory ) and this: [Category Sales] =...
·community.powerbi.com·
Re: DAX Comparison Measure
Re: Help with getting value for previous period dax
Re: Help with getting value for previous period dax
Hi, Try this =LOOKUPVALUE(Data[Sales],Data[Month],CALCULATE(MAX(Data[Month]),FILTER(Data,Data[Job ID]=EARLIER(Data[Job ID])&&Data[Month]
·community.powerbi.com·
Re: Help with getting value for previous period dax
Detail Rows Documentation
Detail Rows Documentation
Detail Row Expressions Detail row expressions is one of the top new features of Analysis Services 2017 (1400 Compatibility Level) as it provides the equivalent of a drillthrough action for users to…
·insightsquest.com·
Detail Rows Documentation
De-Seasonalized Correlation Coefficient
De-Seasonalized Correlation Coefficient
This builds off of my original article here: https://community.powerbi.com/t5/Community-Blog/Correlation-Seasonality-and-Forecasting-with-Power-BI/ba-p/14147 and 's take on that approach here: https://community.powerbi.com/t5/Quick-Measures-Gallery/Correlation-coefficient/m-p/196274 To introduce...
·community.powerbi.com·
De-Seasonalized Correlation Coefficient
Re: Time difference between next row
Re: Time difference between next row
May be a MEASURE instead of a column would handle memory better. Try this MEASURE Time Difference Measure = VAR NextRow = CALCULATE ( MIN ( TableName[Date/Time] ), FILTER ( ALL ( TableName ), TableName[Date/Time] SELECTEDVALUE ( TableName[Date/Time] ...
·community.powerbi.com·
Re: Time difference between next row
DAX: Rollup value within a group
DAX: Rollup value within a group
Hi Community, I've one question, maybe a silly one, but I already wasted some time trying to solve the following requirement... I've the following very simple star schema model in my PBI file, and what I want to do is to roll up the value measure per Country Name... I'm able to roll up the value...
·community.powerbi.com·
DAX: Rollup value within a group
Best Approach to Two Dax Challenges?
Best Approach to Two Dax Challenges?
Greetings, I have a table of municipal water consumption records. I'm trying to create a monthly average of gallons used by residents. I need to filter the table by Rate Class = "Residential." Looks easy enough, but my DAX calcs seem wrong. Here's the DAX: Avg Monthly Vol Residential:=CALCULATE(...
·community.powerbi.com·
Best Approach to Two Dax Challenges?
Re: Count duplicates with having constraint
Re: Count duplicates with having constraint
Try This Calculated Column Duplicates = VAR mycount = CALCULATE ( DISTINCTCOUNT ( TableName[surrogate] ), ALLEXCEPT ( TableName, TableName[Parent] ) ) RETURN IF ( TableName[Brand] = "ST", IF ( mycount = 1, "Pass", "Failure" ), "N/A" )
·community.powerbi.com·
Re: Count duplicates with having constraint
Mean Time Between Failure (MTBF) and Power BI
Mean Time Between Failure (MTBF) and Power BI
Introduction Mean Time Between Failure (MTBF) is a common term and concept used in equipment and plant maintenance contexts. In addition, MTBF is an important consideration in the development of products. MTBF, along with other maintenance, repair and reliability information, can be extremely valuab...
·community.powerbi.com·
Mean Time Between Failure (MTBF) and Power BI
Forecasting
Forecasting
Hi! I have calculated cumulative forecast and cumulative recorded sales. I need help with a DAX-expression to alter my forecast based on the results of the recorded sales: Example: Original forecast says 10$ per month, cumulative this will give january 10$, february 20$, march 30$ etc... Resulting ...
·community.powerbi.com·
Forecasting
Consecutive Days, Back Again…
Consecutive Days, Back Again…
GUESS WHO'S BACK, BACK AGAIN Krissy's back, tell a friend! Guess who's back, Guess who's back, Guess who's back. Guess who's back… Well, as probably most o
·powerpivotpro.com·
Consecutive Days, Back Again…
Re: Previous Date value by country and product and with missing days
Re: Previous Date value by country and product and with missing days
Try this calculated column Column = VAR currentdate = TableName[Date] VAR PreviousDate = CALCULATE ( MAX ( TableName[Date] ), FILTER ( ALLEXCEPT ( TableName, TableName[Country], TableName[Product] ), TableName[Date] currentdate ) ) RETURN...
·community.powerbi.com·
Re: Previous Date value by country and product and with missing days
Re: Students variations year over year
Re: Students variations year over year
, Just change it as follows. DIVIDE ( COUNT ( Students[Student ID] ) - prev, prev )
·community.powerbi.com·
Re: Students variations year over year
Re: Runing Balance
Re: Runing Balance
Hi , Based on my test, you should be able to just use the formula below to create a new calculated column in your table to get Running Balance. :smileyhappy: Running Balance = CALCULATE ( SUM ( Table1[Amount] ), FILTER ( ALL ( Table1 ), Table1[SUPLIER] = EARLIER ( Table1[S...
·community.powerbi.com·
Re: Runing Balance
Re: KeepFilter Help Needed
Re: KeepFilter Help Needed
Hi Do you mean, you want to make sure filters set external to the matrix are applied to the calculation? If so, try this.... ACD Time (min) = VAR TotalSeconds=SUMX(ALLSELECTED('agent_interval') ,HOUR('agent_interval'[acdTime_i_HHMMSS])
·community.powerbi.com·
Re: KeepFilter Help Needed
Re: Tricky text search to identify companies with certain charachterisitcs
Re: Tricky text search to identify companies with certain charachterisitcs
If you have a term table like so (let's call it SecTerms): And then another table with a text column (let's call it Companies) like so: Then the following measure will work in a matrix: TermInstance = SUMX(SecTerms, SUMX(Companies, SecTerms[Weight]* (LEN(LOWER(Companies[De...
·community.powerbi.com·
Re: Tricky text search to identify companies with certain charachterisitcs
Use value from other row in dataset based on condition
Use value from other row in dataset based on condition
I am trying to do some advanced DAX/PowerQuery equations and I am coming up short and looking for some help. I have a dataset like the below and the use case is to get an average amount of time spent for each 'code'. To come up with that I need to take each true value timestamp and comare it agai...
·community.powerbi.com·
Use value from other row in dataset based on condition
DAX to countrow if sum condition is met
DAX to countrow if sum condition is met
Hi, Trying to work out the DAX measure to count the rows if the sum of the amount is greater than 0 per ClientID, but to no avail. Data is as follows: ClientID Amount 1 0 1 10 2 0 3 100 Each row is a meeting, and I need to count the number of meetings in the case that the sum of the amount p...
·community.powerbi.com·
DAX to countrow if sum condition is met
Re: Rolling 3 Month Sum
Re: Rolling 3 Month Sum
Maybe this: Rolling 3 Month Total = CALCULATE ( KPI_Finance_Actual_Budget[Actual Profit], DATESINPERIOD ( KPI_Finance_Actual_Budget[FullDate], LASTDATE ( PREVIOUSMONTH ( KPI_Finance_Actual_Budget[FullDate] ) ), -3, MONTH ) ) Although if "KPI_Finance_Actu...
·community.powerbi.com·
Re: Rolling 3 Month Sum
Power BI Desktop February Feature Summary | Microsoft Power BI Blog | Microsoft Power BI
Power BI Desktop February Feature Summary | Microsoft Power BI Blog | Microsoft Power BI
There are two themes for this month’s Power BI Desktop update. The first is a focus on some of your major asks including multi-selecting data points across multiple charts and syncing slicer values across multiple pages of your report. We also have a major update to our SAP HANA connector. Our second theme is a focus on performance improvements across three different areas of our product.
·powerbi.microsoft.com·
Power BI Desktop February Feature Summary | Microsoft Power BI Blog | Microsoft Power BI