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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anandakash
Microsoft Employee
Microsoft Employee

Plotting calculated Measure after Filtering Table

Let say i have a table T with 4 column (a,b,c,d). i create a measure i.e measure = sum(a), filter(T, b =="some value" and c =="some other value"). 
I want to plot measure VS column d (column which doesn't filter the table while calculating measure. I want this plot to be constant but it not coming as constant plot instead this measure is calculated at every different instance  of column d and then plotting it.

Can i have a constant plot???

Thanks,

Akash

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Anandakash ;

Try it.

Measure = CALCULATE(Sum('Table'[Sales]), FILTER(ALL('Table'), 'Table'[Gender] == "M" && 'Table'[Age] < 6))

The final show:

vyalanwumsft_0-1658912532393.png


Best Regards,
Community Support Team _ Yalan Wu
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

7 REPLIES 7
v-yalanwu-msft
Community Support
Community Support

Hi, @Anandakash ;

Try it.

Measure = CALCULATE(Sum('Table'[Sales]), FILTER(ALL('Table'), 'Table'[Gender] == "M" && 'Table'[Age] < 6))

The final show:

vyalanwumsft_0-1658912532393.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks, this is what i wanted so i guess plotting x vs y is somehow internally filtering the table containing x. As putting All table as param in the filter condition fixed the issue and returned us the desired output.

v-yalanwu-msft
Community Support
Community Support

Hi, @Anandakash ;

Try it.

Measure = CALCULATE(Sum('Table'[Sales]), FILTER('Table', 'Table'[Gender] == "M" && 'Table'[Age] < 6))

I don't quite understand what you mean, it would be better if you could share the results you wish to output.

The final show:

vyalanwumsft_0-1658911842803.png

Or
vyalanwumsft_1-1658911852105.png

 


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I just want value of this measure to be independent( I.e constant plot of Measure Vs Country) of Country since for calculating measure i have not filtered table on the basis of this column(Country)

Anandakash
Microsoft Employee
Microsoft Employee

@amitchandak ( i see you as top Kudoed Author)  is this achievable?? Will really appreciate if you can help here

Anandakash
Microsoft Employee
Microsoft Employee

let My Table =

SalesAgeGenderCountry
113MB
194FC
153FA
146FB
278MC
122MA

 

And

Measure = CALCULATE(Sum('Table'[Sales]), FILTER('Table', 'Table'[Gender] == "M" && 'Table'[Age] < 6))

 

Anandakash_0-1658689419878.png


See the plot between measure and column Country isn't constant and Instead it is calculating the measure for Country Column instances "A", "B", "C" and then plotting it. 
I want this plot to be constant for "A", "B", "C". Is this Achievable???

 

VijayP
Super User
Super User

@Anandakash Question is incomplete! it is better share some sample data with a snap shot of out come




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.