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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
amalm
Helper III
Helper III

Adding values to visual from one table based on input from another

Hi,

 

I have a table "AllJobs" with the following columns:

  • Date
  • Username 
  • Job
  • Revenue
  • Incentive

This table is populated on a daily basis and each row pertains to individual activities perfromed by each user. 

 

I have another table "MIncentive", with the following columns:

 

  • Date
  • Username
  • ManualIncentive

This table is prepared manually in excel: the supervisor verifies the activity and deducts incentive for any mistakes made. 

 

I need a visual that shows the following:

  • Username
  • Incentive 
  • ManualIncentive (total for the selected period on the timeline)
  • Total Incentive (=Incentive+ManualIncentive)

All the above fields should obey the related filters (username & date).

I'm running into the problem where I (apparently) need to relate both "Date" and "Username" between the tables to achieve this, but I guess that's not allowed. How do I get around this?

 

Thanks a lot in advance.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @amalm,

 

Since you have in both tables repeateds users and dates you are running to a many to many relationship (two in this case) you must create 2 dimensions tables with unique values to make the relationship between the two tables and then make the visuals as you need.

 

dimensiontalbes.gif

 

 

 

Check the attach PBIX file with the setup.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @amalm,

 

Since you have in both tables repeateds users and dates you are running to a many to many relationship (two in this case) you must create 2 dimensions tables with unique values to make the relationship between the two tables and then make the visuals as you need.

 

dimensiontalbes.gif

 

 

 

Check the attach PBIX file with the setup.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix, Thanks a ton for your reply. It didn't work completely at first (the date slicer wasn't filtering the "All Jobs" table), but I made some changes: - Changed the cross filter direction "All Jobs" and "Calendar" to both, - Added the date slicer with "All Jobs [date]" instead of the "Calendar[date]".

@MFelix, Sorry, but it doesn't seem to work completely still. In either configuration, only one of the slicers (Date/User) works, but the "All Jobs" and "Incentive" table do not obey both the slicers at the same time.

Hi @amalm,

 

Can you please elaborate on wht is not working? What is the expected behavior when you click the slicers?

 

Thank you.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.