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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RossCurrie15
Regular Visitor

New to Power BI

Relatively new to Power BI. Looking for some guidance?

 

Loaded up two tables with very similar data with different names, only one column differs in values. I would like to compare the two values together to understand variance between the two? Is this creating a measure or using relationships? Tried to use relationship however got error message regarding columns not having unique values?

3 REPLIES 3
Greg_Deckler
Super User
Super User

Could you post some sample data or some made up data that emulates your data? 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

If i load up two different tables, "Sales 1" and "Sales 2" which have all the same column headers except one where Sales 1 has"This year" and Sales 2 has "last year" where the values differ and i want to compare these two columns to understand the variance, how could this be done?

Hi @RossCurrie15,

You can use “Merge Queries “ feature to join the two tables tomake the "last year" column and "This year" column in a single table such as Sales 1, then create a new column in Sales 1 using formula like: Difference = 'Sales 1'[This year]-'Sales 1'[NewColumn.Last year] to compare values of the two different columns. For more details about how to use Merge Queries  “ feature, please review this blog: http://radacad.com/relationship-in-power-bi-with-multiple-columns .
 

And you can check the example in this attached PBIX file. If you don’t get expected result, please help to post sample data of your scenario.



Thanks,
Lydia Zhang

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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