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
sigtopo
Frequent Visitor

Extract data from start and end validity

Hi,

I've got a table with product and starting/end date of marketing, like this :

 

Product
start of marketing

End of marketing
Produit A01/01/201831/01/2018
Produit A01/01/201931/01/2019
Produit A01/01/202031/01/2020
Produit A01/01/202131/01/2021
Produit A01/01/202231/01/2022
Produit B01/01/201831/01/2020
Produit C01/01/201931/01/2023


I want to get this visualisation : 

 active productdiscontinued productnew product
2018202
2019301
2020300
2021210
2022200
2023110

 

I used a table of dates in years

I used COSSSJOIN function to obtain a table with for each year the existence of the product or not. But I cannot compare and obtain the desired variations between years (discontinued products or new products)

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

you can do the cross join in your measures automatically as long as you keep the tables disconnected.

lbendlin_0-1712621208334.png

 

lbendlin_1-1712621224927.png

 

 

lbendlin_2-1712621238999.png

 

see attached

 

 

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

you can do the cross join in your measures automatically as long as you keep the tables disconnected.

lbendlin_0-1712621208334.png

 

lbendlin_1-1712621224927.png

 

 

lbendlin_2-1712621238999.png

 

see attached

 

 

 

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.