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
RanHo
Helper IV
Helper IV

HOW TO CREATE COLUMN AND GET DISTINCT VALUES BASE FROM OTHER COLUMN FILTERED BY DATE

  

 Hi Good day Guys!!

   Just need some help on my recent project. I have example table and output needed here. As you can see I need to show the Job ID of an Employee for the next year. If I filtered January 2023(dt started), then the Job ID need to appear is the Job ID of an employee of January 2024, based on my table  , every jobID has a corresponding Job code and also has date started/expiry. Is it possible to get the desired values through Dax or column ?

TABLE EMPLOYEE.JPG

Capture.JPG
Thank you in advance!


1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1709608755546.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1709608755546.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur  Thankyou for the reply , I see that's somehow work, but how about if I need also to display the JobID for the past year with the current year like column1 is for JobID for 2023 then beside it column2 is for JobID for 2024 in the same matrix or table? is it possible?

You are welcome.  I am not sure.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-shex-msft
Community Support
Community Support

HI @RanHo,

It seems like a common requirement that need to analysis on multiple date fields, you can refer to the following blog start, end date part to know how to handle this scenario:

Before You Post, Read This: start, end date 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.