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

Join 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.

Reply
sarahmclaughlin
Regular Visitor

How to use DAX to link tables

Hi,

I'm a PowerBI novice, and I am trying to correct a database design error using DAX.

I have two client types (Survivor, Supporter), but only Survivor is linked to a table with the date the service was rendered (service_id). I need to count the number of Supporters per month, but PowerBI cannot see them because they are not linked to a date (through service_id). 
I thought to create a custom column that can find the ClientPI_id that they both share, and then use the same (service_id) found for Survivor to populate the matching blank cell for Supporter. How could I achieve this with DAX? (Pic below)

 

I really appreciate some help!

Thanks, Sarah

2022-06-02.png

2 ACCEPTED SOLUTIONS
DimaMD
Solution Sage
Solution Sage

Hi, @sarahmclaughlin  try it
Screenshot_17.jpg


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

View solution in original post

@sarahmclaughlin You do not need to do this in PowerQuery, but add a calculated column in PowerBi. 
Screenshot_1.jpg


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

View solution in original post

6 REPLIES 6
sarahmclaughlin
Regular Visitor

Thank you so much! This worked perfectly!!! I've been stuck on this for weeks! 

sarahmclaughlin
Regular Visitor

Hi! I get a message saying it doesn't recognise MAXX, and documentation says "This function is not supported for use in DirectQuery mode" - https://docs.microsoft.com/en-us/dax/maxx-function-dax 
Is there another function I could try? How did it work on your side? Thanks so much!!!

@sarahmclaughlin  You must create a computed column, not a measure, Please provide a screenshot of the error
See example
Example_pbix


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Picture2.pngPicture1.png

@sarahmclaughlin You do not need to do this in PowerQuery, but add a calculated column in PowerBi. 
Screenshot_1.jpg


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com
DimaMD
Solution Sage
Solution Sage

Hi, @sarahmclaughlin  try it
Screenshot_17.jpg


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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