Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don'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.

Reply
mikesdunbar
Frequent Visitor

Always show a specific column in matrix, regardless of filter

I'm trying to present some financial data that compares actuals versus different time periods (last month, 2024 budget) for different locations (NYC, LA). My users should be able to always see Actuals, no matter what selection of the slicer. So, they could just check Previous Month, both LA and NYC, and it would show Actuals (never goes away) and Previous Month.

 

The Budget Period and location are dimension tables, and the amounts are pulled from a fact table.

 

mikesdunbar_0-1732624925649.png

 

SlicersBudget PeriodLocation
Previous MonthNYC
2024 BudgetLA
Actual 

 

 ActualPrevious Month2024 Budget
 NYCLANYCLANYCLA
Revenue650450500300600400
COGS200150200175300250
Sales and Recruiting502550257545
G&A201030151510
1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@mikesdunbar,

 

Try this solution.

 

1. Create a clone of the Budget Period table and name it Budget Period Slicer (no relationships). This can be done in Power Query or a DAX calculated table. I added an Index column for sorting. Here's the model:

 

DataInsights_0-1732632821123.png

 

2. Create measure:

 

Amount = 
CALCULATE (
    SUM ( 'Fact Table'[Amount] ),
    'Budget Period'[Budget Period]
        IN VALUES ( 'Budget Period Slicer'[Budget Period] )
            || 'Budget Period'[Budget Period] = "Actual"
)

 

3. Create slicer using 'Budget Period Slicer'[Budget Period]. This is the disconnected table.

 

4. Configure matrix:

 

DataInsights_1-1732632924903.png

 

DataInsights_2-1732633053917.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
mikesdunbar
Frequent Visitor

That did it, thank you!

 

Could you please explain to me how that measure works from the DAX you listed out?

@mikesdunbar,

 

Glad to hear that worked. See comments:

 

Amount =
CALCULATE (
    SUM ( 'Fact Table'[Amount] ),
    // Filter 1:
    //   Step 1: Capture the selected value(s) in Budget Period slicer (disconnected table, so doesn't filter matrix).
    //   Step 2: Determine which matrix Budget Period values (dimension table joined to fact table) are in Budget Period slicer (Step 1), and return these.
    'Budget Period'[Budget Period]
        IN VALUES ( 'Budget Period Slicer'[Budget Period] )
            // OR Filter 2: This returns TRUE if Fact Table rows for Actual exist in the visual's filter context.
            || 'Budget Period'[Budget Period] = "Actual"
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




DataInsights
Super User
Super User

@mikesdunbar,

 

Try this solution.

 

1. Create a clone of the Budget Period table and name it Budget Period Slicer (no relationships). This can be done in Power Query or a DAX calculated table. I added an Index column for sorting. Here's the model:

 

DataInsights_0-1732632821123.png

 

2. Create measure:

 

Amount = 
CALCULATE (
    SUM ( 'Fact Table'[Amount] ),
    'Budget Period'[Budget Period]
        IN VALUES ( 'Budget Period Slicer'[Budget Period] )
            || 'Budget Period'[Budget Period] = "Actual"
)

 

3. Create slicer using 'Budget Period Slicer'[Budget Period]. This is the disconnected table.

 

4. Configure matrix:

 

DataInsights_1-1732632924903.png

 

DataInsights_2-1732633053917.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.