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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.