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

scalar max of measure/dynamically filtering insignificant sources

Hi folks. 

I am trying to clean up some graphs by filtering out sources with insignificant contribution.  Example, with y-values a measure:

cabliewA_0-1683724361546.png

the "blank" sources are just small. Because the amounts vary substantially by selection/navigation, I can't filter the graphic by a static number like 100 or even 10k because depending on source selection, it would still show insignificant sources or no data at all.


If I could create a measure filter_measure = log10([max of shown measure]/[shown measure]). then I can filter the graphic to only show sources within several orders of magnitude of the max value in the graph. Eg: [filter_measure] < 3.

I can't figure out how to calculate the "[max of shown measure]" part, though. I can't use calculated columns because the max is selection-specific.  I've tried a lot of the solutions using maxx, but all of them evaluate to 1 because maxx is evaluated within the context of the selection, so MAXX[shown measure] = [shown measure]. I've seen some solutions with calculate(), but I'm not adding a filter. I thought about using summarize because I'm trying to convince PowerBI to "forget" the row-based context for the purposes of calculating this max and generate a table with only a single row corresponding to whatever source is generating the max.

I figure there's gotta be an easier way. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

A clever peer gave me the answer: MAXX(ALL([table])[shown measure] made everything magically work. Here's my final filtering measure = 
if([shown_measure] = 0, 10, LOG10(MAXX(ALL[table]),[shown measure])/[shown measure])

and graphic filter set final filtering measure < 3.  

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

A clever peer gave me the answer: MAXX(ALL([table])[shown measure] made everything magically work. Here's my final filtering measure = 
if([shown_measure] = 0, 10, LOG10(MAXX(ALL[table]),[shown measure])/[shown measure])

and graphic filter set final filtering measure < 3.  

Syk
Super User
Super User

Try something like this

max measure = VAR SummarizedTable =
SUMMARIZE(
    'Table',
    'Table'[Category],
    "Sum of Values", SUM('Table'[Value])
)
return
maxx(SummarizedTable,[Sum of Values])

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.

Top Solution Authors