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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
KH_Mike
Helper III
Helper III

How to use the same column to calculate two dimension

Hi All,

 

I have a data like below and want to have two separate measure to calculate and put it into a scatter chart X & Y axis. I tried to create new column by using existing "Type" column. and Make the "Type" and "New Type" as a slicer. Then set both slicer not filter together. However, when I try to create two measure like below but seems it will affected by the "Type" and "New Type" selection.

 

X Axis = calculate(sum([Amount]),removefilters([New Type]))

Y Axis = calculate(sum([Amount]),removefilters([Type]))

 

TypeAmount
A10
A20
B30
B40
C50
C60
D70
D80
E90
E100
1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @KH_Mike 

Thanks for reaching out to us.

>> Then set both slicer not filter together.

First you need to create 2 dimension tables, 'X Axis' & 'Y Axis'.

then please go to Model view, make sure these 3 tables are independent from each other,

vxiaotang_1-1662618517704.png

then create 2 measures,

X Axis = calculate(sum('Table'[Amount]),FILTER('Table','Table'[Type] in ALLSELECTED('X Axis'[Type])))
Y Axis = calculate(sum('Table'[Amount]),FILTER('Table','Table'[Type] in ALLSELECTED('Y Axis'[Type])))

result

vxiaotang_3-1662618682732.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @KH_Mike 

Thanks for reaching out to us.

>> Then set both slicer not filter together.

First you need to create 2 dimension tables, 'X Axis' & 'Y Axis'.

then please go to Model view, make sure these 3 tables are independent from each other,

vxiaotang_1-1662618517704.png

then create 2 measures,

X Axis = calculate(sum('Table'[Amount]),FILTER('Table','Table'[Type] in ALLSELECTED('X Axis'[Type])))
Y Axis = calculate(sum('Table'[Amount]),FILTER('Table','Table'[Type] in ALLSELECTED('Y Axis'[Type])))

result

vxiaotang_3-1662618682732.png

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@KH_Mike , You need at least one independent table

Type new = distinct(Table[Type])

 

Then you need have a measure

Calculate(sum([Amount]),removefilters([Type]), keepfilters(Type[Type]))

 

or

 

Calculate(sum([Amount]),Filter(all(Table[Type]), Table[Type]) in values(Type[Type])) )

 

Also refer

Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

Compare two Brands: https://youtu.be/exN4nTewgbc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors