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
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
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.