cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
C_Jiang Regular Visitor
Regular Visitor

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

Accepted Solutions
Highlighted
Stachu Super Contributor
Super Contributor

Re: Return a list of value match the specific time period

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!

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Highlighted
Stachu Super Contributor
Super Contributor

Re: Return a list of value match the specific time period

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!

Proud to be a Datanaut!

View solution in original post

v-jiascu-msft Super Contributor
Super Contributor

Re: Return a list of value match the specific time period

Hi @C_Jiang,

 

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.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 6 members 974 guests
Please welcome our newest community members: