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
eeroso
Frequent Visitor

Map bubble size by selected value and nothing selected

AreaAge groupValue
New York0-301.1
New York30-606.2
New York60+20.1
New YorkAll ages6.1
Los Angeles 0-301.1
Los Angeles 30-60 4.2
Los Angeles 60+23.6
Los AngelesAll ages10.1

 

So I have similar table like that and Im supposed to show values on a map based on area. If nothing is selected in any filter, it is supposed to show "All ages" value on each bubble size and tooltip. If a age group filter is selected in other visualization, it is supposed to show corresponding age group value in bubble size/tooltip.

If I just put area as area and value as Size in map, it works for the age group filters, but if nothing is selected it shows the chosen aggregate over all age groups. Instead I want only to show "all ages" value when nothing is selected. And no, All ages is not sum,average, or anything like that over those age groups - its based on things like population and other stuff which is not provided by the data provider.

1 ACCEPTED SOLUTION
eeroso
Frequent Visitor

Looks like I managed to solve it by myself

IF (
SELECTEDVALUE('Table2'[Age Group]) = BLANK(),
SUM('Table1'[All ages value]),
SUM('Table1'[Value])
 
)
 
Table2 is table with same agegroups in other visual (which is the initial filtering visual on click)
"All ages value" is calculated column which only contains all ages values (all other age groups are 0)

View solution in original post

1 REPLY 1
eeroso
Frequent Visitor

Looks like I managed to solve it by myself

IF (
SELECTEDVALUE('Table2'[Age Group]) = BLANK(),
SUM('Table1'[All ages value]),
SUM('Table1'[Value])
 
)
 
Table2 is table with same agegroups in other visual (which is the initial filtering visual on click)
"All ages value" is calculated column which only contains all ages values (all other age groups are 0)

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.