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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
alora101
Frequent Visitor

Help with static Measures

 

Hi All,

 

I dont know how to explain my situation but i will try to make it simple.

 

I have a measure called gross amount which is the total of unit price

 

gross amout = sum(unit price)

 

The issue i have is , i want to make this gross amount static ( when i apply filters it wont affect it because i want to use it to do other calulation for example

 

Product        gross amount

A                 300

B                200

C               400

 

TOTAL  900

 

Now, if i apply filter on product A and B which is 500, i want to be able to get the

 

1. percetage of 500/900 ,

2. 900- 500  etc

 

just to make the grand total to ignore the filter but be able to use the filter total against the grand total.

 

any help will be much appreciated. 

1 ACCEPTED SOLUTION

@alora101,

 

Just change it as follows.

Measure =
DIVIDE (
    SUM ( Table1[unit price] ),
    CALCULATE ( SUM ( Table1[unit price] ), ALL ( Table1[Product] ) )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@alora101,

 

You may simply add ALL Function.

Measure =
CALCULATE ( SUM ( Table1[unit price] ), ALL ( Table1[Product] ) )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI Sam,

 

Thanks for your solution however, if i try to do the sum of sum of the filter total against the all product i dont get to see the result rather the filter result.

 

for example.. when i appied the ALL to the calculation i get the desire result which is  500 but when filter the product and the sum of that is 300 , i want to be able to divide or subtract 300 from 500.

 

Hope this explanation helps and thanks very much for this info.

@alora101,

 

Just change it as follows.

Measure =
DIVIDE (
    SUM ( Table1[unit price] ),
    CALCULATE ( SUM ( Table1[unit price] ), ALL ( Table1[Product] ) )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.