Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
For a SSAS 2017 tabular model surfaced via pivot tables, a handy (vital) feature is the ability to drill through to a sensible selection of detail rows via double click on a measure (just like in the old school Excel pivot tables that your finance department can't part with). The content of the drillthough is determined by the table property [Default Detail Rows Expression]. The example Microsoft provides here is great insofar as it goes.
SELECTCOLUMNS( 'Internet Sales', "Customer First Name", RELATED( Customer[Last Name]), "Customer Last Name", RELATED( Customer[First Name]), "Order Date", 'Internet Sales'[Order Date], "Internet Total Sales", [Internet Total Sales] )
My problem is that I have a calendar table with an active relationship with my fact table (let's call this fact column end_date_sk) and an inactive relationship with the same table (let's call this fact column start_date_sk). If I want to return calendar columns from both the inactive and active relationships, what do I do? RELATED() only seems to work for the active relationship.
Thanks @Anonymous
Can you link to an example of this? I tried USERELATIONSHIP with no joy.
Using RELATED(TABLE) is tricky with inactive relationships. Here's the code you're after.
New Table = SELECTCOLUMNS( 'Fact', "Value For Column 1", RELATED( Dim[Value] ), "Value For Column 2", CALCULATE ( CALCULATE ( VALUES ( Dim[Value] ), 'Fact' ), USERELATIONSHIP ( Dim[Column], 'Fact'[Column 2] ), ALL ( Dim ) ) )
Assumptions:
If you want to know why so, please go to this article and read.
Best
Darek
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
12 | |
11 | |
8 | |
6 |
User | Count |
---|---|
24 | |
14 | |
14 | |
12 | |
10 |