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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Help!!!

Greetings!

I have one SQL query which creates a table.
Query is -

Select a.origin_date, a.consumer_level, a.id as Cust_id, b.id from
vw_ratio as a
full join vw_ratio as b
on a.id = b.cust_emp_id
and a.origin_date = b.origin_date

In sql they are doing self join i guess.



I am wondering how can i do it powerBi!
Can anyone suggest me on this??

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

I am not very sure what you mean, do you just want to get the table or do you want to reproduce the functionality of this SQL statement in Power BI for learning purposes. Be aware that SQL statements are also available in Power BI.

v-angzheng-msft_1-1621579826446.png

 


If you want to reproduce the function of this sql statement, you can try to create calculate table like below:

v-angzheng-msft_2-1621579930409.png

Of course, merging in Power query is also helpful. I'm not sure what your exact requirements are so I provide as much relevant information as possible, hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

I am not very sure what you mean, do you just want to get the table or do you want to reproduce the functionality of this SQL statement in Power BI for learning purposes. Be aware that SQL statements are also available in Power BI.

v-angzheng-msft_1-1621579826446.png

 


If you want to reproduce the function of this sql statement, you can try to create calculate table like below:

v-angzheng-msft_2-1621579930409.png

Of course, merging in Power query is also helpful. I'm not sure what your exact requirements are so I provide as much relevant information as possible, hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Anonymous , In power query, merge you have the option of full join merge

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

 

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
Anonymous
Not applicable

@amitchandak , for that Sql query i have to do full join merge?

Instead of mergering Can we write dax?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors