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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Bastienlin_
Helper II
Helper II

How to show new datas in my column between one date and the dates before it

Hello,

I would like to display a table where I show the new datas in a column between a selected date from a slicer, and all the dates before. Here is an example of what I need to show:

Fact_table:

City Date DateQuarter
Paris 31/03/2019 2019-Q1
London 31/03/2019 2019-Q1
     
Paris 30/06/2019 2019-Q2
London 30/06/2019 2019-Q2
Madrid 30/06/2019 2019-Q2
     
Paris 30/09/2019 2019-Q3
London 30/09/2019 2019-Q3
Tokyo 30/09/2019 2019-Q3
     
Paris 31/12/2019 2019-Q4
London 31/12/2019 2019-Q4
Barcelona 31/12/2019 2019-Q4


1. With this data, If I select in my date slicer 2019-Q4, I want to show new datas for City compared to all the dates before (new cities from 2019-Q4, compared to all cities from all dates before). Here it would display:

Barcelona

because I never had the value "Barcelona" in my previous dates before 2019-Q4

2. If I select in my slicer 2019-Q3, it would display

Tokyo

because I never had the value "Tokyo" in my previous date before 2019-Q3

 

Thank you !

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Bastienlin_ ,

Please new a measure like:

Measure = 
var _t1= SUMMARIZE(FILTER(ALL('Table'),YEAR([Date])*10 + QUARTER([Date])<MAX('For Slicer'[Number])),'Table'[City])
var _t2= SUMMARIZE(FILTER(ALL('Table'),[DateQuarter]=MAX('For Slicer'[DateQuarter])),'Table'[City])
return 
EXCEPT(_t2,_t1)

Result:

vcgaomsft_0-1667443410766.png

vcgaomsft_1-1667443453131.png

The PBIX file is attached for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Bastienlin_ ,

Please new a measure like:

Measure = 
var _t1= SUMMARIZE(FILTER(ALL('Table'),YEAR([Date])*10 + QUARTER([Date])<MAX('For Slicer'[Number])),'Table'[City])
var _t2= SUMMARIZE(FILTER(ALL('Table'),[DateQuarter]=MAX('For Slicer'[DateQuarter])),'Table'[City])
return 
EXCEPT(_t2,_t1)

Result:

vcgaomsft_0-1667443410766.png

vcgaomsft_1-1667443453131.png

The PBIX file is attached for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

amitchandak
Super User
Super User

@Bastienlin_ , seem the code of new vs retained customer will work, you need use qtr, datesqtd in place of datesmtd 

 

Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Customer Retention Part 2: Period over Period Retention:https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-2-Period-over-Period-Retenti...

Dynamic Segmentation, New/Lost/Retain Customer Count:
Learn Power BI Advance - Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://www.youtube.com/watch?v=W4EF1f_k6iY

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors