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
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
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.