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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
RanHo
Helper V
Helper V

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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