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

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

Reply
BobbyDollar
Frequent Visitor

How to use filter with cell reference in row (CALCULATE, FITLER, Cell rereference)

Hi

 

Support for a beginner needed Smiley Wink

I want to calculate a sales share per region and profit center in a new column. In bold the column I want to calculate.

 

Customer_IDRegionProfit_CenterRevenueRegion_Share
1DEPC110033%
2DEPC120067%
3DEPC210025%
4NLPC2200100%
5DEPC230075%


For line 1 and 2 I could calculate as follows:

Region_Share=Table[Revenue] / CALCULATE(SUM(Table[Revenue]);FILTER(Table;Table[Profit_Center]="PC1"); FILTER(Table;Table[Region]="DE"))

But this would not work for the complete database due to the fixed strings. I do not want to fix the filter by a text string like "PC1" and "DE". I want a reference to the cell in this row to use the Profit Center and Region information for calculation.

 

Any idea how to do this?

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@BobbyDollar 

 

Try following

 

Column =
[Revenue]
    / CALCULATE (
        SUM ( 'Table'[Revenue] ),
        ALLEXCEPT ( 'Table', 'Table'[Region], 'Table'[Profit_Center] )
    )

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

@BobbyDollar 

 

Try following

 

Column =
[Revenue]
    / CALCULATE (
        SUM ( 'Table'[Revenue] ),
        ALLEXCEPT ( 'Table', 'Table'[Region], 'Table'[Profit_Center] )
    )

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.