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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
JimmyD
Frequent Visitor

Assistance with Returning a date based on a value repeated for a category.

Hello,

My Company has recently started using Power BI and have been used to SAP BO functions on manipulating data. DAX is a whole new world for me and am Stumped on this one...

I have a list of Projects and their programme, the first task is whole project - I would like to grab the "Finish Date" where Id=1 foreach Project Number. I tried to Lookup but it only likes returning 1 value and wasn't sure how to use a filter for each Project Number here. Is there any function that could help me do this- See picture of sample data;

JimmyD_0-1595302134996.png

As we just started using this the list is small, but it will always be adding new ones and could be quite a large list of projects.

5 REPLIES 5
Anonymous
Not applicable

Hi @JimmyD ,

 

What is the expected out put of your sample data?

 

Best Regards,

Jay

amitchandak
Super User
Super User

@JimmyD , Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I believe you mean the below?

JimmyD_0-1595304245238.png


The aim of this is to get the Daysbetween D & C and Daysbetween D & F and then the difference between the products of them so I can track the Days Ahead or Behind Schedule each project is tracking on graphs and then have a company average of days ahead or behind.

If there is a better way of calculating this I am happy to help but this was the best way I could think of.

Anonymous
Not applicable

Hi @JimmyD ,

 

I'm sorry that i didn't quite understand what you want.

But If you want calculate the days between two dates, you may use DATEDIFF() function.

And if you want average of the days group by company you may use AVERAGE() and ALLEXCEPT() function.

 

Best Regards,

Jay

 

 

Thanks for the reply.

In the end as we were only gathing that data i just transformed the Data table to only show ID 1 as this was all we were using.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors