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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ralfvanwijk
Regular Visitor

custom column fuction

Hi,

 

I have two tables. Table A en B. 

Relevant fields in table A: 'ID number', End Date, Quantity, Price

Relevant fileds in table B: 'ID number', Custom date, Profile

In order to calculate the right Quantity times Price I need to have the Profile figure in table A.

 

So via custom column function in table A I tried to include Profile based on ID number and Custom Date....however it does not work... See below the function I used 

Table.SelectRows(#"GT Prfl_Fracties" , each [Kenmerk]=[Kenmerk] and [Einde levering]=[Custom date])

 

 

 

ralfvanwijk_1-1634132452054.png

 

Somebody any I idea how I can solve this? Additional complexity. In table A not all dates are included. Some day's are missing.

 

Thanks for your help!

 

Best regards,

Ralf

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @ralfvanwijk ,

 

Did you try to merge these two tables to quotethe Custom Date? Or you may try to create a date parameter when you want to filter specified date——Parameters can be used in any query step. In addition to functioning as a data filter, parameters can be used to specify such things as a file path or a server name. Parameters don't prompt for input. Instead, you can quickly change their value using Power Query.

For more information, please refer to: Parameters | Microsoft Docs

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

KNP
Super User
Super User

What do you want to happen for the rows with no dates?

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.