DAX

DAX

1155 bookmarks
Custom sorting
Multi-Column Aggregations (MC Aggregations)
Multi-Column Aggregations (MC Aggregations)
"I like big aggregations and I cannot lie You other PBI'ers can't deny" The attached PBIX file contains a slew of aggregations that span multiple columns All standard quick aggregations are included, namely: Max Min Sum Average Count Count (Distinct) Variance Standard Deviation Median This te...
·community.powerbi.com·
Multi-Column Aggregations (MC Aggregations)
Expanded tables in DAX - SQLBI
Expanded tables in DAX - SQLBI
Expanded tables are the core of DAX; understanding how they work is of paramount importance. This article provides a theoretical foundation of what expanded
·sqlbi.com·
Expanded tables in DAX - SQLBI
Power BI Desktop: Custom Aggregations, Formatting and Performance Indicators (Part 2)
Power BI Desktop: Custom Aggregations, Formatting and Performance Indicators (Part 2)
This multi-part tutorial blog is geared to help BI Analysts create versatile Scorecards with KPIs as well as to facilitate the business reporting transition from Excel, SSRS or other apps to Power BI Desktop. In part 1 of this tutorial, I illustrated how to include more than one aggregation and cu...
·community.powerbi.com·
Power BI Desktop: Custom Aggregations, Formatting and Performance Indicators (Part 2)
The Great Function Project - Part 2 - PowerPivotPro
The Great Function Project - Part 2 - PowerPivotPro
My name is Mathew Herring Jack, and I am a member of Traditional Excel Users Anonymous. As a Traditional Excel User, I could not stop copying and pasting downloaded reports. Even when my manager diagn…
·powerpivotpro.com·
The Great Function Project - Part 2 - PowerPivotPro
M vs DAX: Chopping Broccoli vs Planning a Menu
M vs DAX: Chopping Broccoli vs Planning a Menu
Last week, I had the pleasure of recording some video with Bert Wagner about Power BI. In the video, I got to use one of my favorite analogies for M versus DAX: Are you chopping broccoli or planning a…
·sqlgene.com·
M vs DAX: Chopping Broccoli vs Planning a Menu
Using variables to split up your calculations
Using variables to split up your calculations
Got a DAX question recently that I solved using variables. When I walked them through the solution someone exclaimed “I didn’t know you can do this with variables!”. Variables are a great way…
·kasperonbi.com·
Using variables to split up your calculations
Using DAX Magic For Variable Forecasting
Using DAX Magic For Variable Forecasting
I often have inputs I know today and want to “run them out” into the future applying certain parameters along the way to create a projection. I’m in finance, so my needs will almost always have a fina…
·powerpivotpro.com·
Using DAX Magic For Variable Forecasting
In Common
In Common
Given a table of data called "Students" such as: Teacher Student Teacher A Student 1 Teacher A Student 2 Teacher A Student 3 Teacher A Student 4 Teacher B Student 1 Teacher B Student 5 Teacher B Student 7 Teacher B Student 8 Teacher C Student 3 Teacher C Student 4 Teacher C Student 7 Teacher C Stu...
·community.powerbi.com·
In Common
Filter that will Select the Closest Related Predicted Value
Filter that will Select the Closest Related Predicted Value
Hi Guys, I've Created a Graph in power bi that has the values on the y-axis, and the month number on the x-axis, something that looks similar to the below sample chart. Basically, what I need to do, is to find the "Prediction Grade" that most closely resembles the "Actual Value", and have the ...
·community.powerbi.com·
Filter that will Select the Closest Related Predicted Value
Context transition, expanding tables and CALCULATE
Context transition, expanding tables and CALCULATE
Hi, I'm gaining a better appreciate for DAX and context. There is one topic that still has me a little puzzled. Appreciate some help to reaffirm my understanding (or corrections are welcome) and help with the bits I don't quite get yet... I think I understand what is happening in my calculate...
·community.powerbi.com·
Context transition, expanding tables and CALCULATE
Capturing Power BI queries using DAX Studio
Capturing Power BI queries using DAX Studio
This article describes how to use DAX Studio to capture DAX queries generated by Power BI. Analyzing DAX queries can be helpful to better understand perform
·sqlbi.com·
Capturing Power BI queries using DAX Studio
Covariance
Covariance
From Wikipedia on Covariance: https://en.wikipedia.org/wiki/Covariance In probability theory and statistics, covariance is a measure of the joint variability of two random variables.[1] If the greater values of one variable mainly correspond with the greater values of the other variable, and the sam...
·community.powerbi.com·
Covariance
Re: Assign unique identifier based on multiple attributes
Re: Assign unique identifier based on multiple attributes
Hi This calculated table might be close. Table = VAR DistinctValues = SUMMARIZECOLUMNS('Table1'[Case],'Table1'[Team]) VAR Final = SUMMARIZECOLUMNS('Table1'[Case]) RETURN ADDCOLUMNS( Final , "Group" , CONCATENATEX( FILTER(DistinctValues,[Case]...
·community.powerbi.com·
Re: Assign unique identifier based on multiple attributes
Re: Average of Max Date taken from 4 different columns
Re: Average of Max Date taken from 4 different columns
Try this Column Max Date = VAR temp = { Table1[A Approved], Table1[B Approved], Table1[C Approved], Table1[D Approved] } RETURN MAXX ( temp, [Value] )
·community.powerbi.com·
Re: Average of Max Date taken from 4 different columns
Highlighting Scatter Charts in Power BI using DAX
Highlighting Scatter Charts in Power BI using DAX
Another Friday, another tip. Power BI has undergone a lot of innovative updates over the years, but my favorite one has been a combination of the cross-filtering & highlighting capabiliti…
·sqljason.com·
Highlighting Scatter Charts in Power BI using DAX
To TREATSAS or not to
To TREATSAS or not to
This post describes approaches how to virtual relationships between tables can be established using the DAX function TREATAS() and also approaches how to create physical relationships instead.
·minceddata.info·
To TREATSAS or not to
Dynamic relationships based on the selection
Dynamic relationships based on the selection
Got an interesting question recently where someone wanted to be able to switch the relationships automatically based on which slicer was selected. Take the following example: Here we have the same …
·kasperonbi.com·
Dynamic relationships based on the selection
Staying Current on Power BI Dashboards - SQLServerCentral
Staying Current on Power BI Dashboards - SQLServerCentral
Power BI Dashboards can be kept current using simple DAX formulas in your data models. Save yourself time and energy by understanding how dashboard tiles work on PowerBI.com and what can be done to se
·sqlservercentral.com·
Staying Current on Power BI Dashboards - SQLServerCentral
Re: Most probable value
Re: Most probable value
Yes, I have some Mode measures in the Quick Measures Gallery: https://community.powerbi.com/t5/Quick-Measures-Gallery/Mode-Single-Column/m-p/359150 https://community.powerbi.com/t5/Quick-Measures-Gallery/Mode-Multiple-Columns/m-p/359148
·community.powerbi.com·
Re: Most probable value
Re: SLA % Measures
Re: SLA % Measures
Hi , To achieve your requirement, you can try a measure with following expression: SLA % = CALCULATE ( COUNT ( SLA[SLA] ), FILTER ( SLA, SLA[SLA] = "Breached" ) ) / CALCULATE ( COUNT ( SLA[SLA] ), FILTER ( SLA, SLA[SLA] "No Target" ) ) Thanks, Xi Jin.
·community.powerbi.com·
Re: SLA % Measures
Re: Calculate average of values between two boundaries
Re: Calculate average of values between two boundaries
Give this a shot EHT = VAR myupper = [upper] VAR mylower = [lower] RETURN AVERAGEX ( VALUES ( 'STA Core'[Total TouchTime for the record] ), CALCULATE ( AVERAGE ( 'STA Core'[Total TouchTime for the record] ), FILTER ( 'STA Core', ...
·community.powerbi.com·
Re: Calculate average of values between two boundaries
Power BI Desktop: Custom Aggregations, Formatting and Performance Indicators (Part 1)
Power BI Desktop: Custom Aggregations, Formatting and Performance Indicators (Part 1)
This multi-part tutorial blog is geared to help BI Analysts create versatile Scorecards with KPIs as well as to facilitate the business reporting transition from Excel, SSRS or other apps to Power BI Desktop. In this initial installment, I will illustrate how to include more than one aggregation a...
·community.powerbi.com·
Power BI Desktop: Custom Aggregations, Formatting and Performance Indicators (Part 1)