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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MarcoHaak94
New Member

How to calculate the difference between columns from different datasets?

Hi,

 

I am pretty new to PowerBI. 

 

I have two datasets: one from Q2 and one from Q4. I would like to calculate the difference between certain columns of these datasets. I found how to write a formula using DAX for columns in the same dataset, but how to do it for two different datasets?

MarcoHaak94_0-1668183879390.png

 

MarcoHaak94_1-1668183898901.png

 

 

1 REPLY 1
lbendlin
Super User
Super User

Consider your "datasets" to be independent fact tables.   Next step is to create dimension tables for each of the columns you want to compare (by referencing a combination of your two queries and extracting unique values).  Then wire your data model and create visuals based on the dimensions.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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