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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Relative relation between two tables

i,

 

I have 2 sets of tables in my data set - one for Product demand and another for product supply. I would like an output that displays supply based on their availability dates against the demand dates.

 Product DemandsProduct Demands

 

SupplySupply

 Desired OutputDesired Output

Note - Batch 6 & 7 from the Product supply should not appear against any demand since the availability dates do not match.

 

Thanks

Sheetal

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

Please create a table using dax below.

Table = CROSSJOIN('Product Demand','Product Supply')


Then create a column in the new table using DAX below.

Column = IF('Table'[Demand Dates]>='Table'[Supply Date],1,0)


Drag the column to visual level filter and set its value to 1.
Capture.PNG

Regards,
Lydia

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.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

Please create a table using dax below.

Table = CROSSJOIN('Product Demand','Product Supply')


Then create a column in the new table using DAX below.

Column = IF('Table'[Demand Dates]>='Table'[Supply Date],1,0)


Drag the column to visual level filter and set its value to 1.
Capture.PNG

Regards,
Lydia

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.