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
power_user_123
Frequent Visitor

compare columns in two different tables

Hello,

I need to implement SQL queries in Power BI as our's is a migration project. There are so many join conditions in the SQL. What I am doing is, pulling all the required columns from all the tables involved in to table visual and then applying these joining conditions as filters.

1. Is my approach correct or any other suggestions?

 2. Need to compare price in one table with price in another table and filter rows only having no same price. Which DAX formula can I use to acheive this.

3. Need to check pricing date in table A is between start date and end date in table B and filter only those rows. How can I achieve this.

Appreciate your help.

Thanks

1 REPLY 1
daXtreme
Solution Sage
Solution Sage

Hi @power_user_123 

 

In Power BI there's a mashup engine. It's called Power Query. This lets you pull data, however messy, from any source and massage it into a form that Power BI wants to work with (think: star schema). So, it's not DAX's job to massage data but Power Query. Please therefore use the right tool for the job. DAX is an analytical engine, not mashup.

 

By the way, SQL is for querying data in (mostly) normalized form. Star schema is what semantic models like: denormalized form. So, please pull data from your SQL source and make it into a denormalized form, dimensions and fact tables.

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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