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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sigtopo
Regular 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.