cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rhborders Regular Visitor
Regular Visitor

Looking up multiple values

Hello, 

 

In our database we have a schema that tells us what date we get an invoice and then another dates schema that converts calender days into a fiscal day of year. For example if we got an invoice on 7/5/2015 and our fiscal year started on 7/1/2015 then the fiscal day of year would be 5. I wanted to find the average day that we get an invoice per account, so to do this I averaged our fiscal day of year results to get a rough projection of when we should expect an invoice in the coming years.

 

What I would like to do now is look up what my returned average fiscal day of year is and convert it back to a date format. The issue is that the fiscal year begin date can change so I want this value to be looked up in the most current fiscal year.

 

If more information or pictures are needed to help explain this please let me know,

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Looking up multiple values

You can use lookupvalue function to make it happen.

 

Let me know if you need further assistance on this function

 






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

9 REPLIES 9
Super User
Super User

Re: Looking up multiple values

I guess the best way to post your question is to provide some sample data and expected result, it will help to provide the solution






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





rhborders Regular Visitor
Regular Visitor

Re: Looking up multiple values

Thanks for responding, 

 

Here are some images that can give context to what I am saying Date.PNGDate TableDate2.PNGShows Difference in fiscal year begin date per yearID.PNGfiscal day of year value to be used to find the Cal_Date

Super User
Super User

Re: Looking up multiple values

so you want date differenece to calculated days between cal_date and fiscal_year_begin_date??






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





rhborders Regular Visitor
Regular Visitor

Re: Looking up multiple values

No, what I want is to use the fical mean value and look that up in the fiscal day of year column and return the calendar date.

Super User
Super User

Re: Looking up multiple values

got it.

 

Is "Fiscal Mean" a column or measure?

Is there relationship between date and other table?






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





rhborders Regular Visitor
Regular Visitor

Re: Looking up multiple values

Fiscal Mean is a calculated column and there is not a direct relationship between the two

Super User
Super User

Re: Looking up multiple values

You can use lookupvalue function to make it happen.

 

Let me know if you need further assistance on this function

 






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Highlighted
rhborders Regular Visitor
Regular Visitor

Re: Looking up multiple values

I had tried this before and only got partial results. Some of my records are blank when all should be full. I reran and had the same issue. Any idea as to why this may be?

 

Super User
Super User

Re: Looking up multiple values

Can you share example where you get the blank result and also if there is corresponding record in date table?

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)