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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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