Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have two tables in Power Query.
The first table contains staff information; Name, Cost Rate, Availability (a decimal number for part-time staff), and expected utilisation. If I multiply these all together I get an average daily cost rate.
I also have a calendar table where I've calculated the number of working days (i.e. excluding weekends and public holidays). 1 is a working day and zero is a non-working day.
I want a measure that allows me to multiply the cost rate by the number of working days. I will then filter this value by month. Unfortunately, because my first table doesn't contain any dates I can't create a relationship and so when I try to get this information I see an error that says "Relationships between tables may be needed"
Is there any way around this?
Many thanks,
Chris
Solved! Go to Solution.
You are looking for a CROSSFILTER, a cartesian product of unrelated tables.
Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.
Hi @OuluChris ,
I try to reproduce.
Here's the sample data.
calendar table
staff information table
Try using Table.RowCount and Table.SelectRows in Power Query.
= Table.RowCount(Table.SelectRows(calendar, each [working days] =1))
Then you can multiply it easily.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @OuluChris ,
I try to reproduce.
Here's the sample data.
calendar table
staff information table
Try using Table.RowCount and Table.SelectRows in Power Query.
= Table.RowCount(Table.SelectRows(calendar, each [working days] =1))
Then you can multiply it easily.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You are looking for a CROSSFILTER, a cartesian product of unrelated tables.
Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |