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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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