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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.