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
cpereyra
Helper I
Helper I

Look up column

I have the following table and I need to do a look up to a column based on the month that a date field falls on. 

 

Table would be as follow... So if I have a sale for employee 1234 in October commission would be 2.00. I already have a relationship from another table POS to filter employee ID. 

 

Employee ID    10/1/2020      11/1/2020     12/1/2020

  1234                    2.00               2.50               3.00

  2354                    2.50              1.25                2.00

 

TIA

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@cpereyra , this table needs to be unpivoted.

https://radacad.com/pivot-and-unpivot-with-power-bi
Then if can be referred by another table on date or month Join ( for column refer: https://www.youtube.com/watch?v=czNHt7UXIe8)

 

What is the other table, what is expected output.

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @cpereyra ,

 

According to your request, I created a similar matrix. Can you provide samples file or more data for me to test?

v-henryk-mstf_0-1609222368914.png

 

Best Regards,
Henry

 

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

amitchandak
Super User
Super User

@cpereyra , this table needs to be unpivoted.

https://radacad.com/pivot-and-unpivot-with-power-bi
Then if can be referred by another table on date or month Join ( for column refer: https://www.youtube.com/watch?v=czNHt7UXIe8)

 

What is the other table, what is expected output.

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.