dax

dax

1079 bookmarks
Custom sorting
DaxStudio/DaxStudio
DaxStudio/DaxStudio
DaxStudio - DAX Studio is a tool to write, execute, and analyze DAX queries in Power BI Designer, Power Pivot for Excel, and Analysis Services Tabular.
·github.com·
DaxStudio/DaxStudio
Unpivoting Sensitive Columns in Power BI to Apply Row-Level Security
Unpivoting Sensitive Columns in Power BI to Apply Row-Level Security
In my last post, I explored a less-than-ideal way to approach the lack of object-level security in Power BI. That workaround used DAX to mask sensitive values for certain users. Since that method i…
·dataveld.wordpress.com·
Unpivoting Sensitive Columns in Power BI to Apply Row-Level Security
When is 22 true? - PowerBI DAX Search Within IF Statements - 5MinuteBI
When is 22 true? - PowerBI DAX Search Within IF Statements - 5MinuteBI
I needed to quickly create a calculation that tested for the presence of a string in another column's text values. There are two ways to solve this, but the first one is an interesting example that you can use in several situations. This solution plays on the true-false values of the DAX IF function in PowerBI.
·5minutebi.com·
When is 22 true? - PowerBI DAX Search Within IF Statements - 5MinuteBI
SUMX vs DISTINCT COUNT
SUMX vs DISTINCT COUNT
During the preparation for delivering a Power BI training session for a client, I was looking at the Tabular Data Model that was their data source, and I was struggling with a long running query. I…
·jlsql.wordpress.com·
SUMX vs DISTINCT COUNT
DAX optimization examples - SQLBI
DAX optimization examples - SQLBI
How do you optimize a DAX expression? In this session we analyze some DAX expressions and Tabular models and we will look at how to optimize them through th
·sqlbi.com·
DAX optimization examples - SQLBI
The definitive guide to ALLSELECTED - SQLBI
The definitive guide to ALLSELECTED - SQLBI
ALLSELECTED is a powerful function that can hide several traps. This article is an in-depth analysis of the behavior of ALLSELECTED, explaining shadow filte
·sqlbi.com·
The definitive guide to ALLSELECTED - SQLBI
Runge-Kutta and the Limits of DAX
Runge-Kutta and the Limits of DAX
Introduction My recent foray into solving complex numerical/engineering problems with DAX such as Kaplan-Meier Survival Curves and Linear Interpolation led me to wonder what other kinds of problems I might be able to solve using Power BI and DAX. This inquiry led me to remember one of my fav...
·community.powerbi.com·
Runge-Kutta and the Limits of DAX
Tableau to Power BI: FIXED LOD Expressions
Tableau to Power BI: FIXED LOD Expressions
Every once in awhile, I encounter questions from a trainee or client who is familiar with Tableau but who is getting started with Power BI. They have the ability to do X in Tableau and want to know…
·dataveld.wordpress.com·
Tableau to Power BI: FIXED LOD Expressions
Re: DAX Forecasting Issue
Re: DAX Forecasting Issue
Hi everyone, Apologies for the delay. Here are the steps I used: 1.Create a supporting table. All my revenue groups were listed in the first column and in the second column i contained what type that revenue group belonged to (See Pic) 2. Then i created the following measure based on the ab...
·community.powerbi.com·
Re: DAX Forecasting Issue
Re: Array Formulae in Power BI
Re: Array Formulae in Power BI
Sorry I was away for a while Try this = CALCULATE ( VALUE ( MEDIAN ( Table1[Age] ) ), ALLEXCEPT ( Table1, Table1[Company], Table1[Gender] ) )
·community.powerbi.com·
Re: Array Formulae in Power BI
Power BI Desktop: Custom Aggregations, Formating and Performance Indicators (Part 1)
Power BI Desktop: Custom Aggregations, Formating 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, Formating and Performance Indicators (Part 1)
Using Table Iterators to calculate a future value
Using Table Iterators to calculate a future value
Often we use the Power of DAX statements to create complex calculations that provide tremendous insight into our data. But sometimes there are calculations that seem easy from an Excel point of view, but not possible in DAX. Excel provides the great possibility to create formulas referencing other cells or even ranges that reside in remote spreadsheets. One kind of this calculation type is the iterative application of an interest rate over a timeseries to an investment where the amount of interest adds to the investment in the next period. This means, you have to use the concept of compound...
·minceddata.info·
Using Table Iterators to calculate a future value
Power BI – What If Parameter
Power BI – What If Parameter
A What If Parameter allows for the visualization and analysis of the effects of a change in a variable. The example I use in this post is a salary cap projection. A fictitious sports team has historic…
·feathersanalytics.com·
Power BI – What If Parameter
Re: Weekly %Variance in sales
Re: Weekly %Variance in sales
, Change %v to the following. %v = IF(ISBLANK(MAX(tbl_SalesDaily[previousweekofyear])),0,[DIFFERENCE]/MAX(tbl_SalesDaily[previousweekofyear])) Regards, Lydia
·community.powerbi.com·
Re: Weekly %Variance in sales
Re: Populating future dates with previous year and same month results?
Re: Populating future dates with previous year and same month results?
Hi I've added in the additional checks for those columns (highligted the changes in red-bold) Parallel = VAR MyDate = DATE('Table'[year],'Table'[month],1) VAR SumOfMonthLastYear = SUMX( FILTER( 'Table1', 'Table'[year] = EARLIER('Table'[year]) - 1 && ...
·community.powerbi.com·
Re: Populating future dates with previous year and same month results?
Date range
Date range
This quick measure returns the selected date range formatted in accordance with the Wikipedia Manual of Style. The date format can be customized by changing the parameters listed below. NAME: Date range DESCRIPTION: Write out the selected date range. PARAMETERS: Name: Date Tooltip: Calendar ...
·community.powerbi.com·
Date range
Webinar Followup: Be a Full Stack #PowerBI Jedi - DataChant
Webinar Followup: Be a Full Stack #PowerBI Jedi - DataChant
In today’s post, I am sharing a follow-up to my webinar, that will allow you to refresh the queries, and enjoy the support of scheduled refresh on Power BI service. During the webinar (you can watch it here, if you missed it), I created a custom function that paginates over multiple pages, and was asked …
·datachant.com·
Webinar Followup: Be a Full Stack #PowerBI Jedi - DataChant
Re: Possible Analytics function: dynamic Total column in chart with USA States?
Re: Possible Analytics function: dynamic Total column in chart with USA States?
, Drag [State] from the calculated table to Axis and measures below to Value. Measure = VAR s = SELECTEDVALUE ( 'Table'[State] ) RETURN IF ( s = "Total", SUM ( ValueTable[Regular jobs] ), CALCULATE ( SUM ( ValueTable[Regular jobs] ), FactTable[State] = s ) ) Mea...
·community.powerbi.com·
Re: Possible Analytics function: dynamic Total column in chart with USA States?
Create Dynamic Forward Forecasts in Power BI with DAX
Create Dynamic Forward Forecasts in Power BI with DAX
Have you ever wanted to create automatic forecasts based on historical information? In the past, this was relatively difficult to do using tools like Excel but I’m going to show you in this video t…
·blog.enterprisedna.co·
Create Dynamic Forward Forecasts in Power BI with DAX
Net Work Days
Net Work Days
Recreates the NETWORKDAYS function from Excel with some bonus measures and one that needs fixed or demonstrates a bug/documentation glitch. NetWorkDays calculates the number of days between two dates sans weekends. NetWorkDays = VAR Calendar1 = CALENDAR(MAX(NetWorkDays[created date]),MAX(NetWor...
·community.powerbi.com·
Net Work Days
Dynamic TopN made easy with What If Parameter
Dynamic TopN made easy with What If Parameter
In this post I am going to demonstrate how to create a Dynamic TopN slicer using a What-If Parameter. This will allow your user to simply use the Slicer/Slider to view the TopN values and as a bonus if the user slides it to zero, it will display everything! Who doesn't like something that is easy to...
·community.powerbi.com·
Dynamic TopN made easy with What If Parameter
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)
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