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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Return a list of value match the specific time period

Hi everyone,

 

I need your help!Robot Sad I want to get a list of value from a column that matches specific time period in the same table.

Below is my table, it contains the sales data since 01/01/2016.

 

 

I want to get a list of [EIDCodeBoutique], whoes [DateVentes] corresponds Yesterday;

And another list of [EIDCodeBoutique], whoes [DateVentes] is between 27/08/2018 and Today.

 

How can i achieve this? 

 

Best Regards,

Chen

 

 

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

try this

Measure = 
VAR YesterdayOnly = FILTER('Table','Table'[DateVentes]=TODAY()-1)
VAR OtherTime = FILTER('Table','Table'[DateVentes]<TODAY() && 'Table'[DateVentes]>=DATE(2018,8,27))
RETURN
CONCATENATEX(DISTINCT(YesterdayOnly),'Table'[EIDCodeBoutique],",")

for your second measure replace YesterdayOnly in DISTINCT with OtherTime



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Stachu
Community Champion
Community Champion

try this

Measure = 
VAR YesterdayOnly = FILTER('Table','Table'[DateVentes]=TODAY()-1)
VAR OtherTime = FILTER('Table','Table'[DateVentes]<TODAY() && 'Table'[DateVentes]>=DATE(2018,8,27))
RETURN
CONCATENATEX(DISTINCT(YesterdayOnly),'Table'[EIDCodeBoutique],",")

for your second measure replace YesterdayOnly in DISTINCT with OtherTime



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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