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
Anonymous
Not applicable

How to overcome that you can't add a secondary X axis

Hi there,

 

I have a fact table with employee IDs and their salary data (named SALI Table). One ID can occur multiple times if the employee had multiple raises. 

CIAM IDYear Start Base SalaryCurrent Base Salary
23$800 000$870 630
34$654 654$660 119
25$546$6 011
23$870 630$900 000
34$660 119$700 000

 

I've created a reference table (named UniqueID Table) from this fact table which contains the minimum value of the Year Start Base Salary and the Maximum of the Current Base Salary for each unique ID, and categorized each salary into custom categories based on given criteria:

CIAM IDYear Start Base SalaryCurrent Base SalaryYear Start Base Salary CategoryCurrent Base Salary Category
23$800 000$900 000below 70%below 70%
34$654 654$700 000100-110%120-130%
25$546$6 01170-80%above 150%

 

Now, my issue is, that I need to creat a plot, that shows the number of unique ID-s per custom salary category group (below 70%, 70-80%,...,above 150%) for the Year Start Base Salary Category and the Current Base Salary Category as well.

Something like this:

jtrendl_1-1658137604109.png

In order to make the axis labels in the right order, I needed to create a separate dimension table (named: RSPbins) like this:

jtrendl_2-1658137678180.png

However, I can't connect this dimension table (RSPbins) to both the Year Start Base Salary Category and Current Base Salary Category, because the UniqueID Table should be filterable by the original fact table (SALI Table) and that would create ambiguity between RSPbins and the SALI table (There can be ID-s that should be filtered based on Year Start Base Salary Category but not based on Current Base Salary Category). 

I can't create two separate dimension tables, because Power BI only allows to add a secondary axis to your Y-axis and not to the X-axis.

I hope I managed to explain the situation clearly.

I'm really stuck, any idea is really really appreciated how to overcome this problem.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Make sure you do not have bi-directional join. Then join both columns with same table one join will be inactive, which you can join using userelationship

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Make sure you do not have bi-directional join. Then join both columns with same table one join will be inactive, which you can join using userelationship

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

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
Anonymous
Not applicable

Ahh, this is exactly what I needed, thanks so much!!!!

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

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!

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.

Users online (27)