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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Urgent Help! Populating a calculated column on Matrix based on Slicer selection

Dear All,

 

Please find the below dataset and pbix file for your ref. 

 

Dataset for your ref:

Excel File

 

pbix file

 

Definition:

Our dataset has following things for your understaning,

1. We have Fact table, Project Dimension table and Account Dimension table.

2. Filters: Account & Project filters

3. Matrix table should have Project No, Account, Amount, 1200. In which 1200 is a measured column

 

Problem:

We wanted to have values to be populated on Column named "1200". But, with the current selection of filters, we are getting only the blank values on the column 1200. Please note that, we filtered out the 1200 on the slicer as per our need. 

 

Solution Needed:
When the Slicer is chosen as 5001 and all projects from Project No slicer, we need to have a summed value for the account number 1200. 

 

Formula Used:

We are using the following formula for calculating column 1200,

 

1200 =
CALCULATE (
    SUM ( 'Fact'[Amount] ),
    FILTER ( 'Fact', 'Fact'[Account ] = "1200" )
)

 

 

 

Actual Output What we are getting now:

 

1200filtererd.JPG1200.JPG

 

Expected Output:

1200 Expected Output.JPG1200 excelscreen.JPG

 

Addtional info:

When we select the 1200 on the Filter as shown in below screenshot, the values for the 1200 column is coming correctly. Ofcourse it would come. But, we want the values for Amount column and 1200 column separately.

1200 Additonal2.JPG1200 Additional.JPG

 

Many Thanks,
Praveen. 

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

Try with following

 

1200 = 
CALCULATE (
SUM ('Fact'[Amount]),
FILTER (ALLEXCEPT( 'Fact',Project), 'Fact'[Account ] = "1200"))

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

Try with following

 

1200 = 
CALCULATE (
SUM ('Fact'[Amount]),
FILTER (ALLEXCEPT( 'Fact',Project), 'Fact'[Account ] = "1200"))
Anonymous
Not applicable

Thank you very much Zubair for your timely help.
That's awesome. But, I have another issue now. Could you pls help? 

When I select 5001 in the slicer, there has to be Amount column populated with its summed values and also for the 1200 column with its concerned summed values. 
For example, If 5001 selected on filter, then display the Summed Amount on the 5001 column and Sum of 1200 values on the 1200 column only; not for other columns. 

Which means for the 5001 filter show only the 1200 values and rest of the columns should be shown as blank or null. 

IF 5001, then 1200 or ELSE Null or blank on other columns (1300, 1400, 1500)

IF 5002, then 1300 or ELSE Null or blank on other columns (1200, 1400, 1500)

IF 5003, then 1400 or ELSE Null or blank on other columns (1200, 1300, 1500)

IF 5004, then 1500 or ELSE Null or blank on other columns (1200, 1300, 1400)

 

 

Please take a look at the Updated sample file URLs,

 

Updated pbix

 

Updated Excel sheets

 

 

 

Actual Output what I'm getting now:

columns1.JPGcolumns2.JPG

 

 

Expected Results

 

column3.JPGcolumn4.JPGcolumn5.JPGcolumn6.JPG

 

 

Note: The amount column should display the correct values for each Account numbers 5001, 5002, 5003, 5004. 

 

 

Many Thanks,

Praveen. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors