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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jaryszek
Impactful Individual
Impactful Individual

Trying to add dax to calculate all filters besied one.

Hi Guys,

I have used this dax on my fct_table:

% of Instance Total Cost Test = 
        DIVIDE(
            Sum(Fct_EA_AmortizedCosts[CostInBillingCurrency]),
        CALCULATE(
            SUM(Fct_EA_AmortizedCosts[CostInBillingCurrency]),
            Fct_EA_AmortizedCosts[PricingModel] = "OnDemand"
        ) 
        )


Page Filter is also "OnDemand". 

But it is always returning 100%...

Why? 

Generally i want to divide row filter context in table by sum of all this rows: 

jaryszek_0-1758639078057.png


but it is somehow giving 1,00 (100 %)...

Can anybody help ?

Goal: 
Keep filter context in table and always take current row sum of costs and divide by total row created from filter context...
why this is not working what i did? 

Best,
Jacek 




1 REPLY 1
MasonMA
Resident Rockstar
Resident Rockstar

Hi Jacek,

 

For the denominator, you are calculating total cost of all rows visible under the page filters, but ignoring the row-level split. You'd need to clear the row-level filter while keeping the page filters with ALL() or REMOVEFILTERS() at the right level: 

 

CALCULATE(
SUM ( Fct_EA_AmortizedCosts[CostInBillingCurrency] ),
REMOVEFILTERS(Fct_EA_AmortizedCosts[PricingModel])

)

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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