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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.