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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
InesaL
Regular Visitor

How to create comparison visualisations based on 2 data models.

Hi all!
I have to compare the current week's values with those from 2 weeks ago. The variables/columns in these 2 datasets are the same. Consequently, I have 2 similar data models. How to create a visualisation that compares, for example, the number of items per category from 2 weeks ago and from the current week?
Should I unify somehow these 2 data models?
Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @InesaL ,

To compare the number of items per category from two different data models in Power BI, you can use the "Append Queries" feature to combine the two data models into a single table.

Append queries - Power Query | Microsoft Learn

Note that if the columns in the two data models have different names, you will need to rename them before appending the tables. Also, make sure that the data types of the columns match in both tables.

 

You can create a scatter plot in Power BI to compare the number of items per category from two different datasets.

Current Week = SUM('Current Week'[Number of Items])
Two Weeks Ago = SUM('Two Weeks Ago'[Number of Items])

You can add these measures to the scatter plot as X and Y axes.

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

2 REPLIES 2
Anonymous
Not applicable

Hi @InesaL ,

To compare the number of items per category from two different data models in Power BI, you can use the "Append Queries" feature to combine the two data models into a single table.

Append queries - Power Query | Microsoft Learn

Note that if the columns in the two data models have different names, you will need to rename them before appending the tables. Also, make sure that the data types of the columns match in both tables.

 

You can create a scatter plot in Power BI to compare the number of items per category from two different datasets.

Current Week = SUM('Current Week'[Number of Items])
Two Weeks Ago = SUM('Two Weeks Ago'[Number of Items])

You can add these measures to the scatter plot as X and Y axes.

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

johnyip
Solution Sage
Solution Sage

Just load all those dataset in your pibx, and establish relationships that exists between the tables in the same dataset.

You should have two stanfalone datasets in your pibx by then.

 

After that, depending on you data and need, create some calculated columns / measures that meet your needs.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

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.

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.