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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Darwin98
Frequent Visitor

How can I place the new sales supervisor of a seller since the “x” date?

I have a table where sales are recorded such as what was sold, seller code, among other things. Also, another table where the seller code, supervisor, name, last name, etc. are located. For the sales table, I create a calculated column using DAX related and it shows me in the same sales table the supervisor of the seller who made the sale.

 

Now, how would it be if from the “x” date onwards a seller has another supervisor and I want the sales table to show me the new supervisor of the seller, but keep the supervisor he had before the “x” date?

3 REPLIES 3
WinterMist
Impactful Individual
Impactful Individual

@Darwin98 

 

Are you able to put your PBIX in Google Drive, and then share the link in this thread?

 

I made a best guess at your model in my test data, but if your model is different in any way, the solution will usually not work.

 

NOTE: Whenever posting q's like this, the more of your model you can share, the better.

 

- Is there a [Date] field in the 'Seller' table like I guessed, that tells PBI the date that the Supervisor changed?

- If not, where is the "x" date you mentioned in the original post?

- How does PBI know the "x" date that a supervisor changed for each seller?

 

Regards,

Nathan

WinterMist
Impactful Individual
Impactful Individual

@Darwin98 

 

Not sure if my test data works for what you are trying to do, but here it is in a measure.

 

NOTES:
- Both Sellers (Jeff & June) switched to a new supervisor on 6/25/2022.

- As you can see, the SALES Table is correctly showing the respective Supervisor 1 BEFORE 6/25, and the respective Supervisor 2 AFTER 6/25.

 

WinterMist_0-1700690344489.png

 

Let me know if that works for you.

 

Regards,

Nathan

 

Thanks for your clever response.

I've tried to do it with the same elements you have and it doesn't work 😞 hehehehe
1.png

 

And by any chance can I use the measure in the same table? 

2.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors