Forum Discussion
JMSNYC
7 years agoHelper III
Bubble Chart and DAX Calculation
Hi. I cannot figure out the way to build a bubble chart based on this data set, where 1- x-axis should be the total actual office visits for ANY given customer (i.e. sum column 2) 2- y-axis...
- 7 years ago
Start by creating these 3 Measures and 1 Column
Visits = SUM ( 'Table'[Monthly_office_visit] ) Planned = SUM ( 'Table'[Monthly_office_planned] )
Size Column =
DIVIDE (
CALCULATE ( [Visits], ALLEXCEPT ( 'Table', 'Table'[Customer_ID] ) ),
CALCULATE ( [Planned], ALLEXCEPT ( 'Table', 'Table'[Customer_ID] ) ),
0
)
Size Measure =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Customer_ID] ),
ALLEXCEPT ( 'Table', 'Table'[Size Column] )
)Then create your bubble chart like this...
Hope this helps! :smileyhappy:
Sean
7 years agoCommunity Champion
Start by creating these 3 Measures and 1 Column
Visits = SUM ( 'Table'[Monthly_office_visit] ) Planned = SUM ( 'Table'[Monthly_office_planned] )
Size Column =
DIVIDE (
CALCULATE ( [Visits], ALLEXCEPT ( 'Table', 'Table'[Customer_ID] ) ),
CALCULATE ( [Planned], ALLEXCEPT ( 'Table', 'Table'[Customer_ID] ) ),
0
)
Size Measure =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Customer_ID] ),
ALLEXCEPT ( 'Table', 'Table'[Size Column] )
)
Then create your bubble chart like this...
Hope this helps! :smileyhappy:
JMSNYC
7 years agoHelper III
Awesome. Works perfectly.